By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,287 Members | 1,668 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,287 IT Pros & Developers. It's quick & easy.

Translate into VB.Net

P: n/a
Hi,

-- URGENT --
I have a short piece of C/C++ code that i need
translating into VB.Net. Any volunteers? Know of any
websites that do this? Greatly appreciated.

code:

typedef unsigned char BYTE;
typedef unsigned short WORD;
typedef unsigned long DWORD;

typedef struct genreply_def {
BYTE Request;
WORD rc;
union {
char msg[500 - sizeof (WORD) - sizeof (BYTE)];
{other data}
};
} GENERALREP;

Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Cor
Hi Zahid

C# -> VB .NET Converters:

<http://www.kamalpatel.net/ConvertCSharp2VB.aspx>
<http://csharpconverter.claritycon.com/Default.aspx>
<http://www.ragingsmurf.com/vbcsharpconverter.aspx>
<http://www.aspalliance.com/aldotnet/examples/translate.aspx>
http://www.gotdotnet.com/Community/U...7-979975d5957d

I hope this helps a little bit?

Cor
Nov 20 '05 #2

P: n/a
Hi,

i doesnt get translated properly using the converters :-(
its C/C++ code as opposed to C#.

Anyone else help?

Thanks in advance.
-----Original Message-----
Hi Zahid

C# -> VB .NET Converters:

<http://www.kamalpatel.net/ConvertCSharp2VB.aspx>
<http://csharpconverter.claritycon.com/Default.aspx>
<http://www.ragingsmurf.com/vbcsharpconverter.aspx>
<http://www.aspalliance.com/aldotnet/...es/translate.a spx>http://www.gotdotnet.com/Community/U...les/Details.as px?SampleGuid=c622348b-18a9-47d6-8687-979975d5957d
I hope this helps a little bit?

Cor
.

Nov 20 '05 #3

P: n/a
Cor
Hi Zahid,

Did not look well,

Sorry, but maybe you can put this question in the C# group too.

C++ to C# and then you can do it in 2 steps.

Cor
Nov 20 '05 #4

P: n/a
* "Zahid" <mr******@hotmail.com> scripsit:
I have a short piece of C/C++ code that i need
translating into VB.Net. Any volunteers? Know of any
websites that do this? Greatly appreciated.

code:

typedef unsigned char BYTE;
typedef unsigned short WORD;
typedef unsigned long DWORD;

typedef struct genreply_def {
BYTE Request;
WORD rc;
union {
char msg[500 - sizeof (WORD) - sizeof (BYTE)];
{other data}
};
} GENERALREP;


There are no unions available in .NET.

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.