Re: [Lazarus] Lazarus 2.0 doesn't compile LabJack wrapper

2019-03-07 Thread Joe via lazarus
Am 07.03.2019 um 08:24 schrieb Juha Manninen via lazarus: Actually the implementation part is not needed (I think). Just give the external DLL name in the interface. Interesting approach. I'll try this. Thanx, Juha. -- Joe -- ___ lazarus mailing list

Re: [Lazarus] Lazarus 2.0 doesn't compile LabJack wrapper

2019-03-07 Thread Joe via lazarus
Am 07.03.2019 um 08:33 schrieb Mattias Gaertner via lazarus: Have you tried compiling with {$mode delphi} instead of {$mode objfpc}? The wrapper did not contain any '{$mode objfpc}' or '{$mode delphi}' instruction. I inserted '{$mode delphi}', and the wrapper could be compiled. Thanx, Mattias.

Re: [Lazarus] Lazarus 2.0 doesn't compile LabJack wrapper

2019-03-06 Thread Mattias Gaertner via lazarus
On Thu, 7 Mar 2019 00:53:32 +0100 Joe via lazarus wrote: > Hi, > > we control some laboratory equipment with a LabJack U3-HV interface. > The manufacturer of the interface provided a dll file and a Delphi > wrapper for the dll file to read and set the ports of the interface. > This works well wi

Re: [Lazarus] Lazarus 2.0 doesn't compile LabJack wrapper

2019-03-06 Thread Juha Manninen via lazarus
The implementation part is missing "stdcall;" You also need to match the parameters and return types of functions between interface and implementation parts. Actually the implementation part is not needed (I think). Just give the external DLL name in the interface. Juha -- ___

[Lazarus] Lazarus 2.0 doesn't compile LabJack wrapper

2019-03-06 Thread Joe via lazarus
Hi, we control some laboratory equipment with a LabJack U3-HV interface. The manufacturer of the interface provided a dll file and a Delphi wrapper for the dll file to read and set the ports of the interface. This works well with Delphi XE2. But when I try to migrate to Lazarus 2.0, this wra