February 06, 2004
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


February 14, 2004
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
>
>