?
Solved

calling exe

Posted on 2003-03-01
6
Medium Priority
?
144 Views
Last Modified: 2013-11-20
is it possible to call EXE of one application in another application,in vc++.
0
Comment
Question by:SmitaNaik
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 23

Accepted Solution

by:
Roshan Davis earned 600 total points
ID: 8046985
Sure...You can use CreateProcess API

STARTUPINFO oStartupInfo = {0};
          oStartupInfo.cb = sizeof( STARTUPINFO );
          PROCESS_INFORMATION oProcessInformation = {0};

          CString csApplicationName, csBuffer;

CreateProcess( ( LPCTSTR ) csApplicationName, // name of executable module
               ( LPTSTR )( LPCTSTR ) csBuffer, // command line string
               NULL,                              // SD
               NULL,                              // SD
               FALSE,                              // handle inheritance option
               NORMAL_PRIORITY_CLASS,          // creation flags
               NULL,                              // new environment block
               NULL,                              // current directory name
               &oStartupInfo,                    // startup information
               &oProcessInformation          // process information
               );
          ShowWindow(SW_HIDE);
          WaitForSingleObject(oProcessInformation.hProcess, INFINITE);


Good Luck
0
 

Author Comment

by:SmitaNaik
ID: 8047050
Hello,
Thanks for u r quick reply.
This module is working fine.
thanks once again.

Smita
 
 
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 8047065
Then please rate my comment.

Roshmon
0
Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

 

Author Comment

by:SmitaNaik
ID: 8047098
Hello,
Thanks for u r quick reply.
This module is working fine.
thanks once again.

Smita
 
 
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 8047105
Then please rate my comment. :)

Roshmon
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 8054891
Hi Smita,
   I know you are new to EE. If any experts comments about your Q. and you feel it as the right answer, you have to rate that comment by the option "Comment as Answer".
   
   If you don't mind, where you from .. in INDIA...?

Roshmon.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question