Convert IntPtr to Handle

E

erupakat

Hello,
I am using VS2005 along with a third part SDK . In that I am having a
function called OpenInterface() which will return a Handle .I think in
VS2005 they replaced Handle with IntPtr. How can I solve this issue. I
require this handle in all functions provided by SDK.
Thanks
 
H

Herfried K. Wagner [MVP]

I am using VS2005 along with a third part SDK . In that I am having a
function called OpenInterface() which will return a Handle .I think in
VS2005 they replaced Handle with IntPtr. How can I solve this issue. I
require this handle in all functions provided by SDK.

What's the exact function prototype and type name?
 
S

Stuart Nathan

You can try changing the definition from IntPtr to Integer. It works for
many APIs
 
E

erupakat

I want to change from IntPtr to Handle type.
The function I am using has the prototype
Handle OpenInterface()
 
H

Herfried K. Wagner [MVP]

The function is like
Handle OpenInterface();

The problem is we do not know anything about the 'Handle' type the function
is using. Do you have the 'typedef' for the type?
 

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