[fpc-pascal] windows.GetProcAddress() vs DynLibs.GetProcAddress()
Fred van Stappen
fiens at hotmail.com
Mon Jan 13 17:33:47 CET 2014
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140113/0017bf51/attachment.html>
More information about the fpc-pascal
mailing list