Click here to Skip to main content
16,005,037 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: want to use a CDialogBox in MFC Pin
toxcct28-Sep-05 1:49
toxcct28-Sep-05 1:49 
GeneralRe: want to use a CDialogBox in MFC Pin
vikas amin28-Sep-05 3:49
vikas amin28-Sep-05 3:49 
AnswerRe: want to use a CDialogBox in MFC Pin
S Douglas28-Sep-05 23:45
professionalS Douglas28-Sep-05 23:45 
QuestionFinding the current active button... Pin
u6ik28-Sep-05 1:35
u6ik28-Sep-05 1:35 
AnswerRe: Finding the current active button... Pin
fat_boy28-Sep-05 2:01
fat_boy28-Sep-05 2:01 
AnswerRe: Finding the current active button... Pin
Cedric Moonen28-Sep-05 1:59
Cedric Moonen28-Sep-05 1:59 
AnswerRe: Finding the current active button... Pin
u6ik28-Sep-05 2:27
u6ik28-Sep-05 2:27 
QuestionRun batch-job from MFC-App without command-window Pin
Snore28-Sep-05 1:25
Snore28-Sep-05 1:25 
Dear all,

I wrote an MFC-Application in VC 6.0 which starts a batch-job. When I use
system("start_socet -single data_convert -batch -s C:\\temp\\settings.set");
it all works perfect, but displays me a command-window, every time a new job is started.

In order to avoid the window, I tried it with "CreateProcess" (see code below), but always get back, that the process wasn't able to open a file (MSDN Error-Code Nr. 2)! Does anybody have an idea how to solve this problem?
For your info: Start_socet is a MS-DOS Batch-File, data_convert is an executable which cannot be executed stand-allone!

STARTUPINFO siStartupInfo;<br />
PROCESS_INFORMATION piProcessInfo;<br />
memset(&siStartupInfo, 0, sizeof(siStartupInfo));<br />
memset(&piProcessInfo, 0, sizeof(piProcessInfo));<br />
siStartupInfo.cb = sizeof(siStartupInfo);<br />
int rc=CreateProcess(NULL, "start_socet -single data_convert -batch -s C:\\temp\\settings.set", 0, 0, false, CREATE_DEFAULT_ERROR_MODE, 0, 0, &siStartupInfo, &piProcessInfo);<br />
DWORD error=GetLastError();<br />


Best regards
Snore
AnswerRe: Run batch-job from MFC-App without command-window Pin
Mircea Puiu28-Sep-05 2:36
Mircea Puiu28-Sep-05 2:36 
AnswerRe: Run batch-job from MFC-App without command-window Pin
David Crow28-Sep-05 3:04
David Crow28-Sep-05 3:04 
AnswerRe: Run batch-job from MFC-App without command-window Pin
kakan28-Sep-05 3:45
professionalkakan28-Sep-05 3:45 
GeneralRe: Run batch-job from MFC-App without command-window Pin
Snore28-Sep-05 21:50
Snore28-Sep-05 21:50 
QuestionDeriving a class Pin
FarPointer28-Sep-05 1:19
FarPointer28-Sep-05 1:19 
AnswerRe: Deriving a class Pin
Cedric Moonen28-Sep-05 1:25
Cedric Moonen28-Sep-05 1:25 
GeneralRe: Deriving a class Pin
FarPointer28-Sep-05 1:28
FarPointer28-Sep-05 1:28 
GeneralRe: Deriving a class Pin
Bob Flynn28-Sep-05 1:44
Bob Flynn28-Sep-05 1:44 
GeneralRe: Deriving a class Pin
FarPointer28-Sep-05 1:54
FarPointer28-Sep-05 1:54 
Questionchange row height in ListCtrl report style Pin
tooho28-Sep-05 0:46
tooho28-Sep-05 0:46 
AnswerRe: change row height in ListCtrl report style Pin
prasad_som28-Sep-05 4:31
prasad_som28-Sep-05 4:31 
GeneralRe: change row height in ListCtrl report style Pin
S Douglas29-Sep-05 0:02
professionalS Douglas29-Sep-05 0:02 
QuestionFlexGrid Pin
Mike Winter28-Sep-05 0:46
Mike Winter28-Sep-05 0:46 
Questionwant to use a CDialogBox in MFC Pin
vikas amin28-Sep-05 0:23
vikas amin28-Sep-05 0:23 
AnswerRe: want to use a CDialogBox in MFC Pin
toxcct28-Sep-05 0:44
toxcct28-Sep-05 0:44 
AnswerRe: want to use a CDialogBox in MFC Pin
Cedric Moonen28-Sep-05 0:55
Cedric Moonen28-Sep-05 0:55 
QuestionHide Mouse Cursor ? Pin
Amarelia28-Sep-05 0:19
Amarelia28-Sep-05 0: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.