Hi i have a C++ DLL.
What i am doing is that i am passing memory address to my C++ dll where it write message on that address and i want to read the message from that memory address.
Here is my C++ function.
int _stdcall Test(int res, wchar_t *text)
Now in my C#.Net test app .. if i use unsafe char* .. i am getting proper output.
//Declaration static extern unsafe int Test(char* msg); //Implementation char* SerrMsg = stackalloc char; Test(sMsg); string emsg = new string(sMsg);
Now implementing in vb.net i am getting jst 1st character by using stringbuilder.
//Dec Private Shared Function Test(ByVal msg As StringBuilder) As Integer //Imp Dim sMsg As New StringBuilder(400) Test(sMsg) eMsg= sMsg.ToString()
What is the replacement for char* in VB.Net ?
Help would be appreciated.