#BAD DLL CALLING CONVENTI
T.O. –
What memory model is BC++ using? VB is basically running in large
model and treats all data items as far by default. Make sure that BC++
understands "*" to mean a long (far) pointer and not a near pointer. In
addition, you should use "ByVal FieldName As String" in the VB Declare. VB
will pass 4-byte (long) pointers to the string and to the phantom variable
and expects the same long phantom pointer back as the function result.
— Jim
There is 1 Reply.