CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
Calling the function using function pointer in the perl script.

 



dattaforit
Novice

Mar 3, 2009, 2:05 AM

Post #1 of 3 (1555 views)
Calling the function using function pointer in the perl script. Can't Post

Dear Friends,

I have a windows dll, in my perl script, i am able to load the dll using the Win32::LoadLibrary function and also i a getting the function pointer of the function in the dll, I am using Win32::GetProcAddress function to get the function pointer of the functions in dll. Now How should I call the function using the function pointer which i got from Win32::GetProcAddress?

Thanks in advance.


FishMonger
Veteran / Moderator

Mar 3, 2009, 4:02 AM

Post #2 of 3 (1552 views)
Re: [dattaforit] Calling the function using function pointer in the perl script. [In reply to] Can't Post

Those are old and deprecated modules.

You should use Win32::API
http://search.cpan.org/~cosimo/Win32-API-0.58/API.pm


dattaforit
Novice

Mar 3, 2009, 8:24 PM

Post #3 of 3 (1545 views)
Re: [FishMonger] Calling the function using function pointer in the perl script. [In reply to] Can't Post

Though they are deprecated functions but are working still now, there might be the way to call the function using the pointer(handle) returned by GetProcAddress() function. I cant use win32::API because it is not available for 64 bit perl for windows. Please help with some other option. Basically i want to call a function from a dll.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives