[fpc-devel]Error Delphi load DLL, when DLL created in FPC
zbyszek at router.pixel.pl
Thu Nov 21 12:09:06 CET 2002
> Subject: [fpc-devel]Error Delphi load DLL, when DLL created in FPC
> Reply-To: fpc-devel at lists.freepascal.org
> I have problem when I create DLL in FPC. (FPC 1.06 Win32)
> 1.When create DLL in FPC and use it in program written in FPC - it works
> 2. The same DLL (created in FPC) and use in Delphi (6.0) - Delphi report
> error when loading DLL.
> What I can do, to write DLL in FPC and use it in Delphi.
> It's very strange for me, because both use teh same function to Load
> Best regards
> Zb. Kuczbanski
> Here sample code my_dll.
> Library my_dll;
> WriteLn('Loaded DLL1');
OK, it is no important, what do DLL, I check it for new code of DLL.
var F: LongInt;
szStr : array[0..100] of Char;
strcopy(szStr,'Dll1 is loaded');
When this DLL load program written in Delphi, it show Error (function
In my opinion situation similar to show in Bug 2232.
I check this bug, when both DLL created in Delphi. In this case both DLL
What I can do, to write DLL in FPC and use it in Delphi.
More information about the fpc-devel