[Lazarus] Newbie, porting class to FPC but get procedure assignment error

luiz americo pereira camara luizmed at oi.com.br
Tue Jun 23 22:06:27 CEST 2015


Take a look at
https://msdn.microsoft.com/pl-pl/library/vstudio/7dz62kfh(v=vs.110).aspx
(it suggests a cvtres.exe tool)

Ask to fpc guru if is possible to use manually an different linker like
http://www.digitalmars.com/ctg/optlink.html

In the end, i would try to compile a delphi dll and access it in fpc.

Another try (don't know if is possible) is to use delphi to compile
spromeps.pas as a obj in COFF

Luiz

2015-06-23 15:50 GMT-03:00 Luca Olivetti <luca at wetron.es>:

> El 23/06/15 a les 20:38, Bo Berglund ha escrit:
>
>> On Tue, 23 Jun 2015 18:30:46 +0200, Luca Olivetti <luca at wetron.es>
>> wrote:
>>
>>  El 23/06/15 a les 17:51, Bo Berglund ha escrit:
>>>
>>>>
>>>> The problem is most likely in the conversion because even the smallest
>>>> test application throws an exception on the very first call into the
>>>> driver, the initialization of the Api data interface array.
>>>>
>>>
>>> Or in the calling convention
>>>
>>> http://freepascal.org/docs-html/prog/progse22.html#x174-1770006.3
>>>
>>> you can try and define the external as stdcall or if that fail try cdecl
>>> (though I'm not sure the default is different than delphi).
>>>
>>
>> STDCALL has been there "forever" (since about 2002)...
>>
>
> You could try cdecl then (though I doubt it will make a difference).
>
> Bye
> --
> Luca Olivetti
> Wetron Automation Technology http://www.wetron.es/
> Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150623/0517a8d6/attachment-0003.html>


More information about the Lazarus mailing list