LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to obtain the hInstance (instance handle) in VC++?

New in doing this. I need to open a window in VC++ using, say, CreatWindow(...) which needs the instance handle of the main application (in this case the Labview VIs which calls the VC++ objects). How can I get the instance handle?
Thanks.
PS. What I really want to do is to take over the full screen and display bitmap images on it. Does anyone know any activeX control that allows me to do this from Labview?
0 Kudos
Message 1 of 2
(4,263 Views)
Zuolan,

I think this question should be posted in the LabVIEW group. I can tell you how to get a handle to a CVI window though. There is an SDK function "FindWindowA(...)" that returns the handle to the window. The FindWindow function retrieves a handle to the top-level window whose class name and window name match the specified strings. This function does not search child windows. This function does not perform a case-sensitive search.

Look in MDSN for more help on this function.

Regards,
Azucena Perez
National Instruments
0 Kudos
Message 2 of 2
(4,263 Views)