cinvoke-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cinvoke-dev] Calling a function from a VCL DLL


From: Shmuel Zeigerman
Subject: Re: [cinvoke-dev] Calling a function from a VCL DLL
Date: Tue, 15 Aug 2006 12:00:02 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060729 SeaMonkey/1.0.4

Will Weisser wrote:
1) MyFunc uses the cdecl calling convention, not stdcall.

The binary however was compiled from the source which
included __stdcall. It's somewhat weird...

Here's the .dll as promised; note you have to #include cinvoke-dll.h now
instead of cinvoke.h; I wanted to be able to distribute both the static
and shared libraries side-by-side in the next release.  I appreciate all
the testing.

#include'ing cinvoke-dll.h is fine. (The same can be
achieved by #define'ing CINVOKE_DLL_IMPORT from the
command line or makefile).

Thanks a lot, it works now!

--
Shmuel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]