|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Convert IntPtr to HandleHello,
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 <erupa***@emirates.net.ae> schrieb:
> I am using VS2005 along with a third part SDK . In that I am having a What's the exact function prototype and type name?> 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. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/> Hello,
The function is like Handle OpenInterface(); Herfried K. Wagner [MVP] wrote: Show quoteHide quote > <erupa***@emirates.net.ae> schrieb: > > 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? > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://dotnet.mvps.org/dotnet/faqs/> <erupa***@emirates.net.ae> schrieb:
> The function is like The problem is we do not know anything about the 'Handle' type the function > Handle OpenInterface(); is using. Do you have the 'typedef' for the type? -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/> You can try changing the definition from IntPtr to Integer. It works for
many APIs I want to change from IntPtr to Handle type.
The function I am using has the prototype Handle OpenInterface() Stuart Nathan wrote: Show quoteHide quote > You can try changing the definition from IntPtr to Integer. It works for > many APIs |
|||||||||||||||||||||||