www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

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

↑ ↓ ← "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
↑ ↓ → "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

 I have no problem returning integers to VB. My current proficiency in C++

 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