|
-
Jul 25th, 2001, 02:18 PM
#1
Strings & DLLs
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|