[fpc-pascal] windows.GetProcAddress() vs DynLibs.GetProcAddress()
Fred van Stappen
fiens at hotmail.com
Mon Jan 13 18:06:46 CET 2014
From: fiens at hotmail.com
To: fpc-pascal at lists.freepascal.org
Date: Mon, 13 Jan 2014 17:33:47 +0100
Subject: Re: [fpc-pascal] windows.GetProcAddress() vs DynLibs.GetProcAddress()
Hello and many thanks to help.
Here demo to show the problem (i hope).
>> https://sites.google.com/site/fiensprototyping/dynlib_vs_windows.zip
There is a program : test.pas
It uses a external library soundtouch_2.dll.
There are 2 wrappers :
soundtouch_windows.pas (who uses windows unit) and
soundtouch_dynlib.pas (who uses dynlib unit)
There are also 4 binaries :
test_windows_fpc262.exe => OK, works (use soundtouch_windows.pas and compiled with fpc 262)
test_windows_fpc271.exe => NO, does NOT work (use soundtouch_windows.pas and compiled with fpc 271)
test_dynlib_fpc262.exe => NO, does NOT work (use soundtouch_dynlib.pas and compiled with fpc 262)
test_windows_fpc271.exe => NO, does NOT work (use soundtouch_windows.pas and compiled with fpc 271)
You may test the prog with soundtouch_windows.pas or soundtouch_dynlib.pas (uncomment the one you want in use section).
Many thanks.
_______________________________________________
fpc-pascal maillist - fpc-pascal at lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Oops, forget about the 2.7.1. fpc binaries... (a 64 bit compiler was use in place of 32 bit)).
So, only take care about :
test_windows_fpc262.exe => OK, works (use soundtouch_windows.pas and compiled with fpc 262)
test_dynlib_fpc262.exe => NO, does NOT work (use soundtouch_dynlib.pas and compiled with fpc 262)
Many thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140113/b7d199c3/attachment.html>
More information about the fpc-pascal
mailing list