Click here to Skip to main content
15,922,696 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalacessing msconfig in win9x,,nt,2000,xp Pin
Member 213961923-Jul-05 21:26
Member 213961923-Jul-05 21:26 
GeneralRe: acessing msconfig in win9x,,nt,2000,xp Pin
Alexander M.,24-Jul-05 3:16
Alexander M.,24-Jul-05 3:16 
GeneralRe: acessing msconfig in win9x,,nt,2000,xp Pin
Member 213961924-Jul-05 7:22
Member 213961924-Jul-05 7:22 
Generalchanu1982@rediffmail.comacessing msconfig in win9x,,nt,2000,xp Pin
Member 213961923-Jul-05 21:25
Member 213961923-Jul-05 21:25 
Generalhiding folders and files Pin
Member 213961923-Jul-05 21:20
Member 213961923-Jul-05 21:20 
GeneralRe: hiding folders and files Pin
Alexander M.,24-Jul-05 3:18
Alexander M.,24-Jul-05 3:18 
GeneralRe: hiding folders and files Pin
Member 213961924-Jul-05 7:53
Member 213961924-Jul-05 7:53 
QuestionIs the application running? Pin
picasso223-Jul-05 19:27
picasso223-Jul-05 19:27 
I have created a console C++ application that collects system information, including NFO file as follows
*****************************************************************************

SHELLEXECUTEINFO ShExecInfo = {0};
ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;
ShExecInfo.hwnd = NULL;
ShExecInfo.lpVerb = NULL;
ShExecInfo.lpFile = "\"C:\\Program Files\\Common Files\\Microsoft Shared\\MSInfo\\MSInfo32.exe \"";
ShExecInfo.lpParameters = "/nfo c:\\SystemInformation.nfo";
ShExecInfo.lpDirectory = NULL;
ShExecInfo.nShow = SW_SHOW;
ShExecInfo.hInstApp = NULL;
ShellExecuteEx(&ShExecInfo);
WaitForSingleObject(ShExecInfo.hProcess,INFINITE);

***************************************************************************
The code above works, the problem is that there is no indication that the application still running during creation of the (*.nof) file which could be 1-1.5 mins. I tried a messageBox before the code is executed, but it will the same difference.
Any ideas how to display some sort of message/status bar to monitor progress?
AnswerRe: Is the application running? Pin
Alexander M.,24-Jul-05 3:20
Alexander M.,24-Jul-05 3:20 
AnswerRe: Is the application running? Pin
Blake V. Miller24-Jul-05 18:23
Blake V. Miller24-Jul-05 18:23 
Generalsystem font size Pin
khlins23-Jul-05 17:12
khlins23-Jul-05 17:12 
GeneralRe: system font size Pin
Gary R. Wheeler24-Jul-05 3:45
Gary R. Wheeler24-Jul-05 3:45 
QuestionNo Unicode in Status Bars? Pin
nm_11423-Jul-05 15:49
nm_11423-Jul-05 15:49 
AnswerRe: No Unicode in Status Bars? Pin
Alexander M.,24-Jul-05 3:22
Alexander M.,24-Jul-05 3:22 
GeneralRe: No Unicode in Status Bars? Pin
nm_11424-Jul-05 10:21
nm_11424-Jul-05 10:21 
GeneralVS 2005.NET MFC Pin
Pedromdrp23-Jul-05 15:19
Pedromdrp23-Jul-05 15:19 
GeneralFunction call overhead Pin
Anonymous23-Jul-05 13:21
Anonymous23-Jul-05 13:21 
GeneralRe: Function call overhead Pin
Christian Graus23-Jul-05 13:52
protectorChristian Graus23-Jul-05 13:52 
GeneralRe: Function call overhead Pin
Jose Lamas Rios23-Jul-05 15:03
Jose Lamas Rios23-Jul-05 15:03 
GeneralRe: Function call overhead Pin
Christian Graus23-Jul-05 15:05
protectorChristian Graus23-Jul-05 15:05 
GeneralRe: Function call overhead Pin
Gary R. Wheeler24-Jul-05 3:56
Gary R. Wheeler24-Jul-05 3:56 
GeneralPlease help ... Pin
yaniv_av23-Jul-05 11:13
yaniv_av23-Jul-05 11:13 
GeneralRe: Please help ... Pin
Alexander M.,24-Jul-05 3:26
Alexander M.,24-Jul-05 3:26 
GeneralWINCE: IID_IPIEHTMLDocument Pin
Member 120469923-Jul-05 7:44
Member 120469923-Jul-05 7:44 
GeneralDrawing Lines Pin
merkit23-Jul-05 7:21
merkit23-Jul-05 7:21 

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.