J
Jim
I have to access a third party api to work with their
hardware. Everything was going great UNTIL I ran into the
problem of C# char being 16 bits and the C char being 8
bits. I cannot seem to cast the string properly to use it
in the unmanaged code.
I have tried to use the MarshalAs function in my DllImport
statement but that didn't work.
What i need is to take a string of numbers and convert it
to a Zero Terminated C string or char. Can anyone please
help me.
hardware. Everything was going great UNTIL I ran into the
problem of C# char being 16 bits and the C char being 8
bits. I cannot seem to cast the string properly to use it
in the unmanaged code.
I have tried to use the MarshalAs function in my DllImport
statement but that didn't work.
What i need is to take a string of numbers and convert it
to a Zero Terminated C string or char. Can anyone please
help me.