>
>Duh. The second result is actually spot on. I think I must have just mis-typed the C# code that I submitted for that one :-{
>I was just wondereing, purely out of curiousity, how I'd go about writing a similar translartor.....
I wrote one using CodeRush from DevExpress (I have the full version but it works with the free version):
http://www.rcs-solutions.com/blog/2008/08/17/TranslateCToVBNETOrViceversaUsingCodeRush.aspxSince it basically builds a syntax tree behind the scenes (and has the ability to generate code from that tree) it was really easy to just use it's built-in functionality to do the conversion for me. It's not perfect but it works pretty well.