Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-07

Lib Load in WinCE

2 messages · 1 person · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

SteveG

I am having problems loading a dll with WinCE

my library code (cut down) ------------------------------------------
Library LxLibA01;
{$mode objfpc}{$H+}
uses Interfaces;
function  LxLibCmd_Str( LxDst, LxRefStr :string; LxTimeOut :integer;
LxCallBack :string;  LxArgs :array of string; LxOpts :array of string )
:string;
begin
  Result := '4';
end;
exports LxLibCmd_Str;
my library code (cut down) ------------------------------------------

I use 'LoadLibrary' to load this dll, and the same code works under Win32 and Lin32.
It seems the 'uses' of 'Interfaces' is where the problem lies, as it works ok as long as I dont include 'Interfaces' in the library - unfortunatly I need this unit for other calls withing the library.

any suggestions appreciated (muchly)

using WinXP / FPC 2.2.5 / Laz 0.9.27 (2009-07-22) - WinCE addon same date

Thanks - SteveG

Reply by email

SteveG
to SteveG

It would seem I am unable to load any Laz generated WinCE library (dll) that 'uses' the 'Interfaces' unit.

Any pointers on where or how to track this down would be very much appreciated. (really)

Thanks - SteveG

Show quoted text 38 lines
I am having problems loading a dll with WinCE my library code (cut down) ------------------------------------------ Library LxLibA01; {$mode objfpc}{$H+} uses Interfaces; function LxLibCmd_Str( LxDst, LxRefStr :string; LxTimeOut :integer; LxCallBack :string; LxArgs :array of string; LxOpts :array of string ) :string; begin Result := '4'; end; exports LxLibCmd_Str; my library code (cut down) ------------------------------------------ I use 'LoadLibrary' to load this dll, and the same code works under Win32 and Lin32. It seems the 'uses' of 'Interfaces' is where the problem lies, as it works ok as long as I dont include 'Interfaces' in the library - unfortunatly I need this unit for other calls withing the library. any suggestions appreciated (muchly) using WinXP / FPC 2.2.5 / Laz 0.9.27 (2009-07-22) - WinCE addon same date Thanks - SteveG -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email