
Calling a user-written 32-bit dll from 32-bit vb 4.0
Wondering if anyone can provide me a clue....
I wrote a regular 32-bit c dll with vc++ 4.0 and am calling it from a vb 4.0
32-bit application.
The small function in the c-dll takes a char * from a vb string, does some
manipulations on it, and passes back another char *.
When debugging from c, the char * to about to be passed back looks fine, but
when back in vb, it's truncated or messed-up.
This happens most times when the app is run, but it has also worked correctly
as well, though I don't know why. I've tried, from vb, both setting and not
setting a variable-length to space(128)...Still a problem.
Any ideas are appreciated. Thanks in advance.
Rgds,
MAH.
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.2
mQBtAzEeqw4AAAEDAMDvcqrZmWy3NUVirGeyiACKPetKzYPRut9V8Wpd+p0B8pbO
kWMlhf5PFrN68ZKBisjd6cAojztXVwNSC81M09PBD1P6OX/BjI1eCPNu5bGBt+NF
qigRJ0OWy6pEgwBlAQAFEbQhTWFyayBBLiBIYWxsZXJtYW4gPG1haEBwYW5peC5j
b20+
=i5tF
-----END PGP PUBLIC KEY BLOCK-----