03-04-2015 01:35 AM
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
03-04-2015 02:19 AM
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?
03-04-2015 05:53 AM
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.
03-04-2015 07:25 AM
03-04-2015 07:26 AM
03-04-2015 08:40 AM
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.
03-04-2015 11:04 PM
Hi,
forget my DLL. This was only for explanation.
I will start my Application on CVI panel.
03-05-2015 01:48 AM
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.