LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I retrieve a hWnd required to draw an image created by an ActiveX object on a windows 7 64-bit system?

I'm calling to the NaturalPoint Optitrack SDK using activex controls and am trying to pull tracking data from a trackIR 5.  I have connected to the camera and wanted to start by just viewing a captured frame.  The Optitrack COM provides a function to draw the frame, but needs a hWnd handle for a window to draw to.  I tried to call FindWindow from the user32.dll, but only found FindWindowA, FindWindowExA, FindWindowW, and FindWindowExW.  I'm using Labview 8.6 (32-bit) on a Windows 7 64 bit system (trying to figure out how access the universities liscense manger to install LV2010 64 bit).  Thanks

 

Jarad

0 Kudos
Message 1 of 2
(2,502 Views)

The other functions are variants, depending on how you're dealing with strings:

FindWindowW : Unicode names

FindWindowA: ANSI names

FindWindowEx: Searches child windows for the window that has the specified name. You can provide a parent window handle as a starting point. The "A" and "W" follow the same Unicode/ANSI names as FindWindow.

 

You'd want to use FindWindowA or FindWindowExA since LabVIEW doesn't support Unicode.

0 Kudos
Message 2 of 2
(2,488 Views)