I'm having trouble receiving strings from a dll.
First I create a Databloc of whatever length and pass the pointer in an Interop Call. On the function side the dll receives it as:
code:
int function(wchar_t* param)
Then I create a temporary string and assign it to the one function received.
code:
wchar_t* test = L"Hello World";
param = test;
And then I try to read the string from Plus using Interop.ReadString but that returns nothing. I know I'm doing something really stupid just need some one to point it out. This is just a test code that I need to get running (and understand) to do something more complex.
------------------------------------
Issue 2:
It would be better for me to have the string as single byte chars. I have everything working with char* strings but I do not know how I can get Plus to read single byte ASCII strings from memory. ReadString function assigns them weird characters. This would be better for me because further on I have to read buffers from memory that consist of u_char.
THanks
CD