Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Perl i DLL...

[es] :: Perl :: Perl i DLL...

[ Pregleda: 4060 | Odgovora: 4 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

jox_yu
Marko Mladenovic
beograd

Član broj: 11750
Poruke: 22
*.verat.net



Profil

icon Perl i DLL...18.07.2003. u 15:52 - pre 252 meseci
Da li neko zna kako se upotrebljavaju DLL fajlovi u Perlu za Windows?? Isto tako i API-i....
 
Odgovor na temu

Branko
Branko Petrović
Čačak

Član broj: 4123
Poruke: 89
195.252.80.*



+1 Profil

icon Re: Perl i DLL...21.07.2003. u 13:46 - pre 252 meseci
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.
 
Odgovor na temu

jox_yu
Marko Mladenovic
beograd

Član broj: 11750
Poruke: 22
217.26.66.*



Profil

icon Re: Perl i DLL...22.07.2003. u 16:05 - pre 252 meseci
Ali kako da znam koji Dll fajl ima koje API-je??
 
Odgovor na temu

Branko
Branko Petrović
Čačak

Član broj: 4123
Poruke: 89
*.verat.net



+1 Profil

icon Re: Perl i DLL...23.07.2003. u 11:20 - pre 252 meseci
recimo :

http://www.mentalis.org/
 
Odgovor na temu

leka
Dejan Lekić
senior software engineer, 3Developers
Ltd.
London, UK

Član broj: 234
Poruke: 2534
*.racasse.se

Sajt: dejan.lekic.org


+2 Profil

icon Re: Perl i DLL...23.07.2003. u 20:51 - pre 252 meseci
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.
Dejan Lekic
software engineer, MySQL/PgSQL DBA, sysadmin
 
Odgovor na temu

[es] :: Perl :: Perl i DLL...

[ Pregleda: 4060 | Odgovora: 4 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.