CompuServe Messages

#BAD DLL CALLING CONVENTI

    08-Oct-91 17:32:10
Fm: Jim Mack 76630,2012
To: T.O. 70524,3723
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.