Hi everyone.

I'm somewhat new to the area of DLLs, so I hope this doesn't seem too trivial.

I made a test DLL in C++ that outputs a character pointer (char*). I'm wondering if anyone knows how I could access this string in visual basic?

in C++, I have something like:

extern "C" __declspec (dllexport) __stdcall char* myFunc()
{
char* myPointer = new char[32];
myPointer = "Hello World";
return myPointer;
}

I know how to pass VB strings INTO a C++ dll, but I don't know how to retrieve them. Does anyone know how to do this?

Thanx in advance,

Destined