|
-
Feb 2nd, 2006, 08:21 AM
#1
Thread Starter
Fanatic Member
Type Conversion
The type of a picture box handle is IntPtr. Firstly what does 'Ptr' stand for?
How do i convert this to an int?
I have tried picCamA.Handle.ToInt32 but the SendMessage API wants an int, not an Int32.
Last edited by x-ice; Feb 24th, 2007 at 07:13 PM.
-
Feb 2nd, 2006, 08:34 AM
#2
Re: Type Conversion
I think you should change the declaration of SendMEssage API to use IntPtr rather than int. This is how it should work in .NET
Use [code] source code here[/code] tags when you post source code.
My Articles
-
Feb 2nd, 2006, 07:09 PM
#3
Re: Type Conversion
Just as Shuja Ali says. Any API function that wants a handle should have the argument declared as IntPtr. From the help:
A platform-specific type that is used to represent a poin te r or a handle.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|