From: fi...@hotmail.com
To: fpc-pascal@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@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.


                                          
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to