Click here to Skip to main content
15,917,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Property Sheet Pin
ThatsAlok7-Feb-05 19:07
ThatsAlok7-Feb-05 19:07 
GeneralRe: Property Sheet Pin
Rajesh_K_Sharma7-Feb-05 19:22
Rajesh_K_Sharma7-Feb-05 19:22 
GeneralConnecting to a webpage using WinInet & through a proxy server Pin
karam_chand7-Feb-05 15:53
karam_chand7-Feb-05 15:53 
Generalprinting image directly Pin
mark1827-Feb-05 14:43
mark1827-Feb-05 14:43 
GeneralRe: printing image directly Pin
basementman8-Feb-05 6:36
basementman8-Feb-05 6:36 
GeneralUsing ShellExecute() to execute program -- how to return quickly Pin
shultas7-Feb-05 14:18
shultas7-Feb-05 14:18 
GeneralRe: Using ShellExecute() to execute program -- how to return quickly Pin
Yulianto.7-Feb-05 14:51
Yulianto.7-Feb-05 14:51 
GeneralRe: Using ShellExecute() to execute program -- how to return quickly Pin
ThatsAlok7-Feb-05 18:33
ThatsAlok7-Feb-05 18:33 
In continuataion with Mr GoodMast3r,here is the code which help you out.
<font color=#008000>//First Add a function which will run as thread</font>
 UINT ThreadProc(LPVOID lpParam);
<font color=#008000>
//now you have to launch the excel file and proceed to next 
//sentence
//let previously you code this way</font>

   ShellExecute(.....);
   MessageBox("FINISHED LAUNCHING");" 
<font color=#008000>
//now Code this way</font>

 void CWindowNameDlg::OnButton4() 
{
     ShellExecute(.....);
     MessageBox("FINISHED LAUNCHING");" 
	char strFileName[]="Alok Gupta";
	AfxBeginThread(ThreadProc,(LPVOID)strFileName);
	
}

UINT ThreadProc(LPVOID lpParam)
{
	char *strFileName=(char *)lpParam;
	MessageBox(NULL,strFileName,"",MB_OK);
 <font color=#008000>    //execute your file from here</font>

       ShellExecute(...);

	return TRUE;
}



I hope this COde work well for you



"I Think this Will Help"
<h5
 alok gupta="" <br=""> visit me at http://www.thisisalok.tk

GeneralOpening HTA with WebBrowser control Pin
Rheisman7-Feb-05 13:40
Rheisman7-Feb-05 13:40 
GeneralAlpha blending in TreeView Bitmaps Pin
r3dqu33n7-Feb-05 12:01
r3dqu33n7-Feb-05 12:01 
GeneralString problem in HKLM\MS\Windows\CurrentVersion\Run Pin
LukeV7-Feb-05 11:52
LukeV7-Feb-05 11:52 
GeneralRe: String problem in HKLM\MS\Windows\CurrentVersion\Run Pin
Michael Dunn7-Feb-05 11:55
sitebuilderMichael Dunn7-Feb-05 11:55 
GeneralRe: String problem in HKLM\MS\Windows\CurrentVersion\Run Pin
LukeV7-Feb-05 12:01
LukeV7-Feb-05 12:01 
GeneralRe: String problem in HKLM\MS\Windows\CurrentVersion\Run Pin
LukeV7-Feb-05 13:14
LukeV7-Feb-05 13:14 
GeneralRe: String problem in HKLM\MS\Windows\CurrentVersion\Run Pin
LukeV7-Feb-05 13:36
LukeV7-Feb-05 13:36 
GeneralRe: String problem in HKLM\MS\Windows\CurrentVersion\Run Pin
Michael Dunn7-Feb-05 14:47
sitebuilderMichael Dunn7-Feb-05 14:47 
GeneralRe: String problem in HKLM\MS\Windows\CurrentVersion\Run Pin
Peter Weyzen7-Feb-05 13:35
Peter Weyzen7-Feb-05 13:35 
GeneralRe: String problem in HKLM\MS\Windows\CurrentVersion\Run Pin
LukeV7-Feb-05 13:38
LukeV7-Feb-05 13:38 
GeneralHaving trouble sending this Pin
Tom Wright7-Feb-05 11:33
Tom Wright7-Feb-05 11:33 
GeneralRe: Having trouble sending this Pin
Peter Weyzen7-Feb-05 13:37
Peter Weyzen7-Feb-05 13:37 
GeneralRe: Having trouble sending this Pin
Tom Wright10-Feb-05 5:15
Tom Wright10-Feb-05 5:15 
GeneralGdipluseffects.h new functions in GDI+ 1.1. Pin
Anne Jan Beeks7-Feb-05 11:05
Anne Jan Beeks7-Feb-05 11:05 
GeneralUINT nFlags Pin
Anonymous7-Feb-05 10:19
Anonymous7-Feb-05 10:19 
GeneralRe: UINT nFlags Pin
Chris Losinger7-Feb-05 10:44
professionalChris Losinger7-Feb-05 10:44 
GeneralRe: UINT nFlags Pin
Neville Franks7-Feb-05 10:50
Neville Franks7-Feb-05 10:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.