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

C / C++ / MFC

 
GeneralRe: Property Sheet Pin
ThatsAlok7-Feb-05 17:21
ThatsAlok7-Feb-05 17:21 
GeneralRe: Property Sheet Pin
Rajesh_K_Sharma7-Feb-05 18:39
Rajesh_K_Sharma7-Feb-05 18:39 
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 
Hey all,

I have a program that basically searches a folder for excel spreadsheets and puts them into a list control.

On clicking in the list control, it is using ShellExecute() (simply passing the name of the file, not the excel executable) to launch the Excel and have it load the file.

It opens the file without a problem, however what is happening is the method that this shellexecute code is in will not go to the next line of code until Excel loads up, and loads the file. This is causing me problems because it is not hi-lighting the list control right away. Since Excel takes it's time to load up, and load the file, this is usually 30 seconds later.

I did a simple "MessageBox("FINISHED LAUNCHING");" directly after the ShellExecute call, and sure enough, the message box does not pop up until 30 seconds or more later when the spreadsheet is fully loaded.

I am wondering if there is another way around this, to get my program to launch excel, and move on w/out caring what Excel is doing, whether it loaded or not, etc. If I don't have to, I would like to avoid having to use some other method of launching the file that would cause me to have to specify the folder and executable name of excel.

Any help would be appreciated.

Shultas
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 
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 

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.