From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VB hWnD

I trying to interface LabVIEW to some hardware using the activeX controls
that came with it. Problem is that these controls were probably designed to
be used with VB or VC++. One of the parameters that have to be passed to the
control is a window handle for images. With regard to LabVIEW, what is this
and where do I wire it from?????

Leon
0 Kudos
Message 1 of 3
(2,448 Views)
Lobo;

You need to get the LabVIEW window reference number. For that, you need to make a call to Windows API. NI provide the necessary vi's in the Knowledge Base:

How Do I Get the Instance (Windows handle) of a LabVIEW Window?

Windows API Function Utilities (32-bit) for LabVIEW

Let us know if you need more help.

Regards;
Enrique
www.vartortech.com
0 Kudos
Message 2 of 3
(2,448 Views)
Thanks Enrique. Managed to get that working. I now ant to be able to get the
handle of a picture control or intensity graph to display an image. Any
ideas.

Leon
"Enrique" wrote in message
news:506500000005000000FC4D0000-1004225886000@exchange.ni.com...
> Lobo;
>
> You need to get the LabVIEW window reference number. For that, you
> need to make a call to Windows API. NI provide the necessary vi's in
> the Knowledge Base:
>
>
>
href="http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/136f
6b1f34cbb76e852563fc007...

>
>
>
href="http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&74DDE683A1
AFF6988625683A000C0D73&...


>
> Let us know if you need more help.
>
> Regards;
> Enrique
0 Kudos
Message 3 of 3
(2,448 Views)