|
-
Dec 4th, 2007, 05:08 AM
#5
Thread Starter
New Member
Re: Using a VC++ DLL in a VB6 project
The function is similar to advapi32.dll's RegQueryValueExA function. The last parameter of the aforementioned function is the size of the buffer, and the one before it is the buffer itself (ByRef). So, sysTabRead, working in a similar matter, receives a buffer (tableAddrs), and the buffer size. In the case of my example sub, the buffer size is 4 bytes, for a long integer which I am expecting to receive. Once I call the function, the tableAddrs buffer receives the 4-byte long integer. In fact, when I debug the sub, after receiving the Bad DLL convention error message, if I query for the value of tableAddrs, the result is the long integer I was expecting.
Problem is, after several seconds, VB6 crashes with the memory read exception...
Please help?
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
|