Novo

Forum kao aplikacija na telefonu

Dodajte forum na početni ekran i koristite ga kao aplikaciju, sa menijem na dnu ekrana.

  • 4 odgovora
  • 4.975 pregleda

Najnovija ↓

Perl i DLL... 18.07.2003. u 16:52 · pre 283 meseca #1
Da li neko zna kako se upotrebljavaju DLL fajlovi u Perlu za Windows?? Isto tako i API-i....
Re: Perl i DLL... 21.07.2003. u 14:46 · pre 283 meseca #2
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.
Re: Perl i DLL... 22.07.2003. u 17:05 · pre 283 meseca #3
Ali kako da znam koji Dll fajl ima koje API-je??
Re: Perl i DLL... 23.07.2003. u 21:51 · pre 283 meseca #5
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.
Potpis
Dejan Lekic
software engineer, MySQL/PgSQL DBA, sysadmin
Prijavite se da biste odgovorili u ovoj temi.PrijavaRegistracija

Premeštanje teme