[fpc-pascal] stdcall vs. cdecl: another "using a FPC-generated .dll with Microsoft Visual C++" question

Jeff Wormsley daworm10 at comcast.net
Thu Mar 25 05:06:57 CET 2010

Seth Grover wrote:
> I appreciated Henry's comment regarding my last question (generating a
> .lib file from a FPC-generated for linking with VC++). I ended up
> using implib (http://implib.sourceforge.net) to generate the .def file
> with dll2def.exe and then fasm.exe to create the .lib file from that,
> and VC++ seems to link fine against it.
Not exactly on topic, but I'm curious why you want to link statically 
like this and not dynamically.  AFAIK, VS can call LoadLibrary and 
GetProcAddress just fine. 


More information about the fpc-pascal mailing list