trip85
Apr 20th, 2001, 03:38 PM
Hello Everyone-
I am having a problem with C++ DLL that I am calling from my VB program.
When I call the DLL I have to pass in a string and an integer. When I debug the program in C++ the string that is passed in is fine, but the integer that I am passing in gets screwed up. I am passing in "1" as the integer when I call the DLL in VB. When I am debugging in C++ the variable that the integer gets assigned to equals "1240848"
Is there some kind of conversion that must be done between C++ and VB so that integers can be passed back and forth?
I would greatly appreciate any help with this, if more info is needed please let me know.
I am having a problem with C++ DLL that I am calling from my VB program.
When I call the DLL I have to pass in a string and an integer. When I debug the program in C++ the string that is passed in is fine, but the integer that I am passing in gets screwed up. I am passing in "1" as the integer when I call the DLL in VB. When I am debugging in C++ the variable that the integer gets assigned to equals "1240848"
Is there some kind of conversion that must be done between C++ and VB so that integers can be passed back and forth?
I would greatly appreciate any help with this, if more info is needed please let me know.