www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - Problem returning float from DLL function to VB6

reply "Jim Linderman" <jimlinderman skyviewmail.com> writes:
I am writing a DDL to be called by VB6. I am having trouble returning a
float or double from the DLL function. My incoming parameters work fine and
I have no problem returning integers to VB. My current proficiency in C++ is
not very good, although I have done some programming in C and C++ in the
past. I am also new to Digital Mars.



Any help would be appreciated.



Thanks

Jim Linderman
Feb 06 2004
parent "Walter" <walter digitalmars.com> writes:
DMC++ returns floats and doubles in FPU regist ST(0). If that is not where
VB6 expects them to be, that will not work.

"Jim Linderman" <jimlinderman skyviewmail.com> wrote in message
news:c0149p$2d3n$1 digitaldaemon.com...
 I am writing a DDL to be called by VB6. I am having trouble returning a
 float or double from the DLL function. My incoming parameters work fine
and
 I have no problem returning integers to VB. My current proficiency in C++
is
 not very good, although I have done some programming in C and C++ in the
 past. I am also new to Digital Mars.



 Any help would be appreciated.



 Thanks

 Jim Linderman
Feb 14 2004