List Info

Thread: Re: __Fastcall and PAscal




Re: __Fastcall and PAscal
user name
2007-01-29 17:18:56

mauro russo wrote:
> what is the Delphi convention call corresponding to the CBuilder
> __fastacall?
> I have to use a C++ DLL and a procedure type is declared __fastcall.

If the DLL was compiled with C++ Builder, then the equivalent is Delphi's
"register" calling convention.

If the DLL was compiled with Visual C++, then there is no equivalent.
Visual C++ and C++ Builder use different registers for the fastcall
calling convention.

If you have any control over this, please use stdcall, not fastcall. It
just makes everything easier when everyone uses the same thing.

--
Rob

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )