Guest_imported
New member
- Jan 1, 1970
- 0
I succeeded to write a DLL In C which is usable in Visual Basic 6. The problem I have deals with the differences in types between Visual basic and C (Eg. a long in Visual basic is an integer in C) Since I know this, the functions which are passing numbers work correctly.
Were it goes wrong is when I want to work with strings. I found out that BSTR is the datatype used for strings in VB. This datatype is usable in C, but I want to get the received variable in a char* variable. How can I do that ?
Were it goes wrong is when I want to work with strings. I found out that BSTR is the datatype used for strings in VB. This datatype is usable in C, but I want to get the received variable in a char* variable. How can I do that ?