[ jox_yu @ 18.07.2003. 15:52 ] @
Da li neko zna kako se upotrebljavaju DLL fajlovi u Perlu za Windows?? Isto tako i API-i....
[ Branko @ 21.07.2003. 13:46 ] @
Koristi Win32::API i Win32::API::Prototype

http://dada.perl.it/Win32-API-0.41.tar.gz

Win32::API is a perl extension to import and call functions from any 32-bit DLL (Dynamic Link Library); its main use is to perform "quick and dirty" calls to non otherwise implemented Win32 APIs or third-party or even homegrown DLLs.

primer za stampanje HTML fajla:
Code:

use Win32::API;

$c = new Win32::API("shell32","ShellExecuteA", [N, P, P, P, P, N], N);
$r = $c->Call("ShellExecute Me.hwnd", "Open", 
"C:\\Windows\\rundll32.exe", "C:\\windows\\system\\mshtml.dll,PrintHTML 
C:\\canonical_path\\index.htm", "C:\\canonical_path\\print", 0); 


Pogledaj takodje i :

http://www.roth.net/perl/packages/win32-api-prototype.ppd.

One of the most useful general purpose extensions for Win32 Perl is Aldo Calpini's Win32::API extension. It allows a Perl script to load any arbitrary dynamic link library (DLL) and call into the library's functions. However the extension is difficult to use and can be complicated for anyone lacking C programming experience. This is why we wrote Win32::API::Prototype. It simplifies using the Win32::API extension by simply specifying a function's prototype.
[ jox_yu @ 22.07.2003. 16:05 ] @
Ali kako da znam koji Dll fajl ima koje API-je??
[ Branko @ 23.07.2003. 11:20 ] @
recimo :

http://www.mentalis.org/
[ leka @ 23.07.2003. 20:51 ] @
Ako uz DLL nemas neku dokumentaciju, header fajlove (C/C++) ili bilo sta sto "glumi" interfejs odgovor je - nikako pouzdano neces moci da saznas koje tacno funkcije su raspolozive u tome DLL-u.