LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to start application on a defined panel

Hi,

I have an application which creates new panel on the second monitor an then starts an application on this panel.

The function to start the application is a part of DLL and I don't have sources.

 

How can I start any application on defined pannel?

 

Thanks

 

 

0 Kudos
Message 1 of 8
(5,306 Views)

It's not clear to me what do you mean by "start an application on a panel". Is the DLL function you are calling supposed to create a control on that panel? Does it receives a panel handle?

Moreover, does it succeed if you "start it on the main panel", whatever it means?

 

Possibly the DLL vendor has released some documentation that can help you in using it?



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 8
(5,301 Views)

I have a panel.uir. I setup this panel(size, position,..). Then I display(DisplayPanel(panelHandle)😉 the panel on second Monitor.

Next I get the windowhandle with HWND tKeyTestPanelHandle = GetWindowHandle("panelName");

Then I give the tKeyTestPanelHandle to some function from a dll.

 

This funktion started a testaplication on the panel(secondmonitor).

 

 

The DLL has no Dokumentation.

 

0 Kudos
Message 3 of 8
(5,289 Views)
Hi UDS,

Are you asking us how to use your DLL for which you have no documentation?

Can you clarify your question?

Thanks,
Daniel Dorroh
National Instruments
0 Kudos
Message 4 of 8
(5,279 Views)
Hi UDS,

Are you asking us how to use your DLL for which you have no documentation?

Can you clarify your question?

Thanks,
Daniel Dorroh
National Instruments
0 Kudos
Message 5 of 8
(5,278 Views)

Again, there are too few elements to understand the scenario. What is that dll supposed to do with the window handle?

And what's that GetWindowHandle function you are using? It's CVI not built-in GetCVIWindowHandle, which has no parameters, and I can't succeed in finding usable function with that name in Win32 APIs or MSDN.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 6 of 8
(5,274 Views)

Hi,

 

forget my DLL. This was only for explanation.

 

I will start my Application on CVI panel.

0 Kudos
Message 7 of 8
(5,265 Views)

I'm not sure I understand you exactly, but I found in the forum this thread that shows how to start an external application as a child of a CVI panel: maybe it that what you are trying to do?

As you can read in the thread, not all external program can run in this mode. I have no experience on such a scenario so this may not be an appropriate suggestion: if not you should try to clarify in great detail what's your problam.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 8 of 8
(5,256 Views)