LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing display component hWnd to dll

I am working with a 3rd party DLL (Halcon) which opens a display window. Using the User32 library I can manipulate this window, make it a child etc, however it should also be possible to pass the DLL the hWnd reference of a component window for it to display in. I have read that Labview doesn't work with the normal Windows windows, but that there may be specific components that will work. Does anybody know front pannel components that have hWnd references that can be used to display a child window, and how to get that reference out of that compoenent? 

0 Kudos
Message 1 of 2
(3,022 Views)

Hi!

 

There is a function called IMAQ Get Window Handle, that is contained in NI Vision Development Module. It returns the operating system handle to an NI Vision external display window. You should create external display with Vision VI's and then you're able to display any image in it. Or you may use CreateWindowEx of user32.dll to build your own window in LabVIEW. Also there are ActiveX and .NET ways to communicate Halcon and LabVIEW. If you import these controls to LV palettes (Tools -> Import -> .NET/ActiveX Controls to Palette...) you'll get simple window in which you are able to display any Halcon images using .NET or ActiveX approach.

 

See also this and this topics (last 4th answer in second may be useful)...

0 Kudos
Message 2 of 2
(3,006 Views)