git-svn-id: trunk@16759 -
@@ -2,6 +2,8 @@
{ %norun }
library tw12987a;
+uses
+ popuperr;
procedure test;
var
@@ -1,5 +1,9 @@
{ %target=win32,win64,wince,os2 }
{ %needlibrary }
+
procedure test;external 'tw12987a' name 'test';
function ThreadTest(p : pointer) : PtrInt;
@@ -1,9 +1,10 @@
-library tw13628a;
+library tw13628a;
uses
- SysUtils;
+ popuperr,
+ SysUtils;
begin
end.
@@ -1,8 +1,9 @@
-program loadmodule;
+program loadmodule;
dynlibs;
const
@@ -19,7 +20,7 @@ const
{$endif windows}
- hdl: TLibHandle;
+ hdl: TLibHandle;
hdl := loadlibrary(libname);
if (hdl=nilhandle) then
@@ -2,6 +2,10 @@
{ %opt=-gh }
library dll1;
IsMultiThread:=True;
library dll2;
@@ -1,7 +1,9 @@
{ %target=win32,wince,win64 }
{$AppType CONSOLE}
-uses Windows;
+ Windows;
{$C+}
@@ -3,6 +3,7 @@ library tw6822a;
{$mode objfpc}{$H+}
uw6822a;
@@ -4,6 +4,7 @@ program loader;
h: TLibHandle;
@@ -4,7 +4,8 @@ program prog;
{$mode objfpc}
- dynlibs;
+ dynlibs;
// this function is exported from the EXE
function exetest: longint; {public name 'exetest';}
@@ -42,7 +43,7 @@ begin
end;
pointer(dllf):= getprocaddress(lh, 'dllf'); // get function from dll
- // call function in dll, which calls function in exe, and then prints
+ // call function in dll, which calls function in exe, and then prints
// a result number 5
if (dllf()<>5) then
halt(1);