Click here to Skip to main content
15,902,938 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralTrouble: procedure imported by some.dll could not be loaded Pin
IceMage20-Nov-03 4:12
IceMage20-Nov-03 4:12 
QuestionHow best to do MDI Pin
LasVegasGuy18-Nov-03 5:54
LasVegasGuy18-Nov-03 5:54 
AnswerRe: How best to do MDI Pin
igor196018-Nov-03 8:13
igor196018-Nov-03 8:13 
AnswerRe: How best to do MDI Pin
Jerry Hammond20-Nov-03 9:26
Jerry Hammond20-Nov-03 9:26 
GeneralRe: How best to do MDI Pin
LasVegasGuy20-Nov-03 11:29
LasVegasGuy20-Nov-03 11:29 
GeneralRe: How best to do MDI Pin
Jerry Hammond20-Nov-03 17:28
Jerry Hammond20-Nov-03 17:28 
GeneralRe: How best to do MDI Pin
LasVegasGuy25-Nov-03 13:09
LasVegasGuy25-Nov-03 13:09 
GeneralMemory cast problem Pin
Visuall18-Nov-03 4:42
Visuall18-Nov-03 4:42 
All,

I am converting a server TCP based software from C++ to Managed C++ and .NET. I want to use C++ as less as possible and use mainly __gc classes and data. I have some problems though. The server communicates with commands encapsulated in structs. For example:

struct SomeStruct
{
int i;
int j;
long int p;
};

So my question is how to convert the managed char array which I receive from the Socket or NetworkStream class to this struct. I want to declare my struct as managed -- __gc struct.

So if we summarize I need to cast managed char array to managed struct or at least copy the contents of the char array to a newly allocated managed struct.

In straight C++ this was pretty easy - we use cast and treat the char buffer like a struct or we use memcpy and copy the contents of the char array to the struct. However I did not found any way to do this fast in managed C.

Can anyone help me with this?

Nick

Visuall
QuestionHow to get pointer to managed class ? Pin
djbreizh17-Nov-03 22:37
djbreizh17-Nov-03 22:37 
GeneralAbout Get Data from Clipboard Pin
RafMar14-Nov-03 0:16
RafMar14-Nov-03 0:16 
QuestionManaged code on older OS, removing managed code? Pin
jack - Anonymous13-Nov-03 16:07
sussjack - Anonymous13-Nov-03 16:07 
AnswerRe: Managed code on older OS, removing managed code? Pin
jack - Anonymous13-Nov-03 20:04
sussjack - Anonymous13-Nov-03 20:04 
QuestionIs the .net framework part of the OS? Pin
LasVegasGuy12-Nov-03 11:37
LasVegasGuy12-Nov-03 11:37 
AnswerRe: Is the .net framework part of the OS? Pin
John M. Drescher12-Nov-03 12:04
John M. Drescher12-Nov-03 12:04 
GeneralRe: Is the .net framework part of the OS? Pin
LasVegasGuy13-Nov-03 12:41
LasVegasGuy13-Nov-03 12:41 
GeneralRe: Is the .net framework part of the OS? Pin
Jerry Hammond13-Nov-03 22:18
Jerry Hammond13-Nov-03 22:18 
GeneralRe: Is the .net framework part of the OS? Pin
Tom Archer14-Nov-03 3:50
Tom Archer14-Nov-03 3:50 
GeneralRe: Is the .net framework part of the OS? Pin
LasVegasGuy14-Nov-03 9:26
LasVegasGuy14-Nov-03 9:26 
GeneralRe: Is the .net framework part of the OS? Pin
J. Dunlap14-Nov-03 9:50
J. Dunlap14-Nov-03 9:50 
GeneralRe: Is the .net framework part of the OS? Pin
Tom Archer14-Nov-03 10:00
Tom Archer14-Nov-03 10:00 
GeneralRe: Is the .net framework part of the OS? Pin
Jerry Hammond14-Nov-03 12:00
Jerry Hammond14-Nov-03 12:00 
GeneralRe: Is the .net framework part of the OS? Pin
J. Dunlap14-Nov-03 12:17
J. Dunlap14-Nov-03 12:17 
GeneralRe: Is the .net framework part of the OS? Pin
LasVegasGuy15-Nov-03 14:01
LasVegasGuy15-Nov-03 14:01 
GeneralRe: Is the .net framework part of the OS? Pin
J. Dunlap15-Nov-03 14:37
J. Dunlap15-Nov-03 14:37 
GeneralRe: Is the .net framework part of the OS? Pin
LasVegasGuy15-Nov-03 15:22
LasVegasGuy15-Nov-03 15:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.