Pointer to a function in VB.NET?

G

Guest

I have an API I'm trying to declare that is defined with a parameter:
int(CALLBACK EXPORT *pFunc)(void)

The description says that's a pointer to a function. How would I declare
this parameter and how can I call it?

Thanks
 
G

Guest

I tried creating a delegate and then passing the AddressOf to the API. It's
erroring out on me with no description, so I can't figure out what is wrong.
 
H

Herfried K. Wagner [MVP]

Mark said:
I tried creating a delegate and then passing the
AddressOf to the API. It's erroring out on me
with no description, so I can't figure out what is wrong.

Post your code and give details, when the error message occurs.
 
I

Imran Koradia

Coud you post the code?

Imran.

Mark said:
I tried creating a delegate and then passing the AddressOf to the API. It's
erroring out on me with no description, so I can't figure out what is wrong.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top