09-22-2010 02:21 PM
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
09-23-2010 09:11 AM
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.