LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Convert I32 to .Net IntPtr?

Dear
Thank for your response.
By the way,
I can find system.intptr.
But I do't find Image.FromHbitmap method in your attached file.
Please inform method or how
How you got image.formhbitmap ?
 
Sincerely yours,
Bongchan Park
0 Kudos
Message 11 of 15
(2,144 Views)

 



메시지가 08-03-2008 06:53 PM에 bc7041에 의해 편집되었음
0 Kudos
Message 12 of 15
(2,144 Views)

@bc7041 wrote:

I can find system.intptr.

Did you follow the directions I gave in reply #6?


But I do't find Image.FromHbitmap method in your attached file.
Please inform method or how
How you got image.formhbitmap ?

To whom are you speaking, and what attached file are you referring to? There were no attached files in this thread - only images.

0 Kudos
Message 13 of 15
(2,111 Views)
Dear.
In attached file,
No 1 is system.inptr.
No 2 is Image.FromHbitmap method .
Please inform method that I can find it.
Sincerely yours,
Bongchan Park
0 Kudos
Message 14 of 15
(2,093 Views)
The second node is a call to a static method, which is what the FromHBitmap method of the Image class is. A static method does not require you create an instance of a class. To call the static method:
  1. Place a .NET Invoke node on the block diagram.
  2. Right-click on the node and select "Select Class -> .NET -> Browse..."
  3. In the popup dialog select "System.Drawing" from the list of assemblies. Make sure you select the right version in case you see more than one depending on how many .NET versions you may have installed on your system. 
  4. In the "Objects" listbox expand "System.Drawing".
  5. Scroll down until you see "Image". Select it.
  6. Click "OK".
  7. Left-click on the word "Method" on the node and a popup menu will appear listing all available methods for the Image class. All of the static methods will have "[S]" in front of them. Select the appropriate static method.

0 Kudos
Message 15 of 15
(2,089 Views)