0

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.

3
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by KevinADC
0

Not 100% sure on this one, but to dereference a pointer to other data types you can use the syntax as follows:
For arrays @{$arrayRef}
For hashes %{$hashRef}
So perhaps the same thing will work with a pointer to a fuction: &{$functionRef}

0

Not 100% sure on this one, but to dereference a pointer to other data types you can use the syntax as follows:
For arrays @{$arrayRef}
For hashes %{$hashRef}
So perhaps the same thing will work with a pointer to a fuction: &{$functionRef}

Thanks for the reply. using &{$functionRef} using how should i give the call to the function. i mean how can i call the function.

How to use $pointer->() to call the function.

0

That does call the function. But as I said, I don't think it applies to your question. Your function is not a perl function.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.