CompuServe Messages

#BAD DLL CALLING CONVENT.

    03-Oct-91 10:44:47
Sb: #1020-#BAD DLL CALLING CONVENT.
Fm: Alfred Giordano 76346,431
To: Jonathan Zuck (UFI) 76702,1605
Jonathan, You are correct, I am writing the DLL in Borland 'C++'. When you say that VB sends the address of a double as a hidden parameter, are you saying that part of the address of a double is in the parameter being passed to the dll and the other on the stack? Or are you saying that the function call in the DLL should handle variable parameters (…). Is this side effect caused by the fact that doubles are 64 bit numbers and the address space is only 32 bits ? Using the following VB Declare statement and cooresponding 'C' prototype how do you propose to obtain the value of the double type from VB? Thanks Al Microsoft VB Declaration: ————————- Declare Function BCDToReal Lib "math.DLL" (ByVal BCDNumber$) As Double Borland 'C' Declaration: ———————— double FAR PASCAL BCDToReal( char far *BCDNumber ) There is 1 Reply.