G
Guest
Hi,
Is there any good links for datatype interop?
I need to pass some structure pointers into an unmanaged method and return
char* etc but having some problems in my C++/CLI proxy class.
I have a methods with signitures like the following...
unsigned char someMethod(unsigned char blah, SOMESTRUCT* somestruct);
what I did in the proxy class was...
System::Byte someMthod(System::Byte blah, SomeStruct* someStruct);
and..
char* someMethod2(unsigned char something);
what I did in the proxy class was...
System::String someMethod2(System::Byte something);
Am I anywhere near right or totally wrong on the types, The char* <->
System::String is wrong and the SOMESTRUCT* etc is giving me problems (the
SOMESTRUCT also has some bitfields in there, do I setup a seperate struct
and attribute it as [Flags] in the usual powers of 2? and what about unions?
I have to set the structs as Sequential layout right?).
Thanks.
Is there any good links for datatype interop?
I need to pass some structure pointers into an unmanaged method and return
char* etc but having some problems in my C++/CLI proxy class.
I have a methods with signitures like the following...
unsigned char someMethod(unsigned char blah, SOMESTRUCT* somestruct);
what I did in the proxy class was...
System::Byte someMthod(System::Byte blah, SomeStruct* someStruct);
and..
char* someMethod2(unsigned char something);
what I did in the proxy class was...
System::String someMethod2(System::Byte something);
Am I anywhere near right or totally wrong on the types, The char* <->
System::String is wrong and the SOMESTRUCT* etc is giving me problems (the
SOMESTRUCT also has some bitfields in there, do I setup a seperate struct
and attribute it as [Flags] in the usual powers of 2? and what about unions?
I have to set the structs as Sequential layout right?).
Thanks.