Article View: comp.os.ms-windows.programmer.tools
Article #578Re: Error while returning values from DLL.
From: Thomas Hornschuh
Date: Mon, 12 Oct 1992 22:59
Date: Mon, 12 Oct 1992 22:59
17 lines
1559 bytes
1559 bytes
Kd> I this procedure as : Kd> OptionsA(int,int,double.......) Kd> The procedure is executed with the values I send. But the returned value Kd> which should be a double is awfull. In a few words it is seperating me Kd> from the answer by couple of zeros. Is there a problem because it is a Kd> double ? Is the DLL and the calling programm compiled with the same Compiler. I had a similar problem some time ago, when calling a procedure in a DLL that was compiled with Zortech C++ from a programm compiled with Borland C++. The return of float and double values is incompatible between Borland, Mircosoft and Zortech. If my memory is right, Borland uses the floating point registers (if no floating point hardware is present, Borland uses an emulator, so there are always floating point registers), Micorosoft uses a static memory location and Zortech uses CPU registers. Using floating point return values is unportable between different compilers!
Technical Details
Message-ID:
<1ab06eba@p1.f36.n245.z2.fidonet.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!Urmel.Informatik.RWTH-Aachen.DE!dfv.rwth-aachen.de!sungate.fido.de!p1.hippo.fido.de!softstream.fido.de!Thomas_HornschuhReferences:
<7aae95b2@vu-vlsi.vill.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!Urmel.Informatik.RWTH-Aachen.DE!dfv.rwth-aachen.de!sungate.fido.de!p1.hippo.fido.de!softstream.fido.de!Thomas_Hornschuh Date: Mon, 12 Oct 92 23:59:28 +0100 From: Thomas_Hornschuh@softstream.fido.de (Thomas Hornschuh) Subject: Re: Error while returning values from DLL. Message-ID: <1ab06eba@p1.f36.n245.z2.fidonet.org> References: <7aae95b2@vu-vlsi.vill.edu> Newsgroups: comp.os.ms-windows.programmer.tools X-Comment-To: devanath@tiger.vill.edu (Kiran devanath) Organization: SoftStream Development, Dortmund, Germany Lines: 18