In message <506500000008000000AFD20000-1079395200000@exchange.ni.com>,
psycho writes
>hi to all,
>
>Hope you can help me with this, i will greatly appreciate it. I have
>created an application using VisualC++ (MFC) with buttons (e.g. START,
>STOP, EXIT and others), The application is OK and working and i want
>to call this application to my another project in Labwindows/CVI v6. I
>have used the LaunchExecutable and system(), i works yes by calling
>the MFC executable but i have to press the START BUTTON again of the
>MFC application to make it run.
>
>What I want to do is run my application(CVI app) then will call the
>MFC app and the MFC app will automatically RUN without pressing the
>START BUTTON on it. Is it possible??
One way is to modify your
MFC application to use command line arguments
(I'm a C programmer and assuming you can do this in C++).
So if your CVI application calls your C++ application with a first
argument of 'R' say then your C++ application runs.
By default your windows short cuts will not have the 'R' and the
application will run as normal when manually launched.
--
Regards,
John Cameron.
Type softly, read gently.