Click here to Skip to main content
15,892,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCFormView in CDocktablePane or docking frame CMDIChildWndEx Pin
Member 1074879523-May-14 6:16
Member 1074879523-May-14 6:16 
SuggestionRe: CFormView in CDocktablePane or docking frame CMDIChildWndEx Pin
Richard MacCutchan23-May-14 7:46
mveRichard MacCutchan23-May-14 7:46 
GeneralRe: CFormView in CDocktablePane or docking frame CMDIChildWndEx Pin
Member 1074879523-May-14 8:56
Member 1074879523-May-14 8:56 
GeneralRe: CFormView in CDocktablePane or docking frame CMDIChildWndEx Pin
Richard MacCutchan23-May-14 11:36
mveRichard MacCutchan23-May-14 11:36 
GeneralRe: CFormView in CDocktablePane or docking frame CMDIChildWndEx Pin
Member 1074879523-May-14 23:09
Member 1074879523-May-14 23:09 
GeneralRe: CFormView in CDocktablePane or docking frame CMDIChildWndEx Pin
Richard MacCutchan23-May-14 23:17
mveRichard MacCutchan23-May-14 23:17 
AnswerRe: here Pin
Software_Developer23-May-14 20:59
Software_Developer23-May-14 20:59 
QuestionCreateProcess() not working Pin
Member 420182022-May-14 23:51
Member 420182022-May-14 23:51 
Hi All,

my objective is to create a .MD5 file using Rehash.exe which will be called by CreatedProcess().

if i run from command line its working fine
C:\temp>rehash.exe -none -md5 "C:\temp\aaa.TFI" > "C:\temp\aaa.MD5"
but if i implement in code and use CreateProcess, its not working
below is the code snippet


int main()
{
STARTUPINFO si;
PROCESS_INFORMATION pi;

ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) );

LPSTR lp_rehashEXE = "C:\\temp\\rehash.exe";
LPSTR lp_Parameter = " -none -md5 C:\\temp\\Praveer.TFI > C:\\temp\\Praveer.MD5";

if(!::CreateProcess(lp_rehashEXE, lp_Parameter, NULL, NULL, false, 0, NULL, NULL, &si, &pi))
{
printf( "CreateProcess failed (%d)\n", GetLastError() );
return false;
}
// Wait until child process exits.
::WaitForSingleObject(pi.hProcess, INFINITE );
// Close process handles.
CloseHandle( pi.hProcess );

return 0;
}




Please help!!!
QuestionRe: CreateProcess() not working Pin
CPallini23-May-14 0:10
mveCPallini23-May-14 0:10 
AnswerRe: CreateProcess() not working Pin
«_Superman_»23-May-14 0:24
professional«_Superman_»23-May-14 0:24 
AnswerRe: It works, you just dont have rehash.exe in C.\temp Pin
Software_Developer23-May-14 1:29
Software_Developer23-May-14 1:29 
QuestionResize a dialog Pin
john563222-May-14 21:32
john563222-May-14 21:32 
QuestionRe: Resize a dialog Pin
CPallini22-May-14 21:56
mveCPallini22-May-14 21:56 
AnswerRe: Resize a dialog Pin
Maximilien23-May-14 3:30
Maximilien23-May-14 3:30 
QuestionContrast "socket API" and "WSASocket API" Pin
bkelly1322-May-14 14:28
bkelly1322-May-14 14:28 
AnswerRe: Contrast "socket API" and "WSASocket API" Pin
Richard MacCutchan22-May-14 20:52
mveRichard MacCutchan22-May-14 20:52 
Generalspeed difference? Pin
bkelly1323-May-14 2:33
bkelly1323-May-14 2:33 
GeneralRe: speed difference? Pin
Richard MacCutchan23-May-14 6:16
mveRichard MacCutchan23-May-14 6:16 
GeneralRe: speed difference? Pin
Richard Andrew x6423-May-14 6:47
professionalRichard Andrew x6423-May-14 6:47 
AnswerRe: Contrast "socket API" and "WSASocket API" Pin
AmitCohen22226-May-14 21:00
AmitCohen22226-May-14 21:00 
GeneralGoing with WSASocket API Pin
bkelly1327-May-14 16:04
bkelly1327-May-14 16:04 
QuestionODS_SELECTED Pin
john563221-May-14 21:01
john563221-May-14 21:01 
AnswerRe: ODS_SELECTED Pin
Jochen Arndt21-May-14 21:26
professionalJochen Arndt21-May-14 21:26 
GeneralRe: ODS_SELECTED Pin
john563221-May-14 23:42
john563221-May-14 23:42 
GeneralRe: ODS_SELECTED Pin
Jochen Arndt22-May-14 0:19
professionalJochen Arndt22-May-14 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.