|
-
December 9th, 1999, 04:50 PM
#1
Passing string back to VB from C++ DLL
I have a C++ DLL routine that returns a pointer to a character buffer that is created and managed by the DLL. The pointer is defined as a string in VB and is passed by reference. After multiple successful calls to the DLL routine, the VB program invariably gets either an "Out of memory" error or a memory access error. It appears that VB is claiming this storage as string space, and thus "cleaning it up". Is there any way to avoid this?
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
|