Click here to Skip to main content
15,912,756 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionbreaking up an int in c programming Pin
neodeaths15-Nov-07 20:18
neodeaths15-Nov-07 20:18 
AnswerRe: breaking up an int in c programming Pin
codeII15-Nov-07 20:35
codeII15-Nov-07 20:35 
AnswerRe: breaking up an int in c programming Pin
Malli_S15-Nov-07 20:57
Malli_S15-Nov-07 20:57 
GeneralRe: breaking up an int in c programming Pin
chandu00415-Nov-07 21:08
chandu00415-Nov-07 21:08 
GeneralRe: breaking up an int in c programming Pin
codeII15-Nov-07 21:40
codeII15-Nov-07 21:40 
GeneralRe: breaking up an int in c programming Pin
CPallini15-Nov-07 21:48
mveCPallini15-Nov-07 21:48 
AnswerRe: breaking up an int in c programming Pin
KarstenK15-Nov-07 21:12
mveKarstenK15-Nov-07 21:12 
QuestionRedirection of output from Console window in MFC Pin
Ash2015-Nov-07 19:53
Ash2015-Nov-07 19:53 
Hi All,

I have developed MFC Application with command line arguments.
In Batch file I am writing ,
FastCopy.exe Source_path Dest_path >C:\log.txt
The redirection of output from console window to C drive is not working . Copying is successfully done.

Case 1)
As this is MFC Application , I have use following to parse command line arguments.
CString sCmdLine= AfxGetApp()->m_lpCmdLine;

Case 2)
In case of Windows Console Application , i have handle the command line in Main function using argc and argc. The redirection of output is working fine in this case also the copy.

I am using "CreateProcess(0, ptr, 0, 0, FALSE, 0, 0, 0, &si, &pi)" in both case where ptr is pointer to string
"C:\Robocopy.exe \\Folder1 \\Folder2"

The redirection is problem in case of MFC application. Can anybody please let me know where I am going wrong. If there anyother solution let me know


Thanks in Advance
Ashish.



QuestionRe: Redirection of output from Console window in MFC Pin
David Crow16-Nov-07 5:37
David Crow16-Nov-07 5:37 
QuestionTimer in DLL Pin
Aamol M15-Nov-07 19:35
Aamol M15-Nov-07 19:35 
AnswerRe: Timer in DLL Pin
KarstenK15-Nov-07 21:13
mveKarstenK15-Nov-07 21:13 
GeneralRe: Timer in DLL Pin
Prasann Mayekar17-Nov-07 23:47
Prasann Mayekar17-Nov-07 23:47 
QuestionDo any one know how to build wxWidgets Pin
yaminisridaran15-Nov-07 19:33
yaminisridaran15-Nov-07 19:33 
AnswerRe: Do any one know how to build wxWidgets Pin
Cedric Moonen15-Nov-07 21:11
Cedric Moonen15-Nov-07 21:11 
GeneralRe: Do any one know how to build wxWidgets Pin
yaminisridaran16-Nov-07 17:20
yaminisridaran16-Nov-07 17:20 
GeneralRe: Do any one know how to build wxWidgets Pin
JudyL_MD17-Nov-07 8:11
JudyL_MD17-Nov-07 8:11 
QuestionChange the size of radio button Pin
Maynka15-Nov-07 19:22
Maynka15-Nov-07 19:22 
AnswerRe: Change the size of radio button Pin
Hamid_RT15-Nov-07 19:28
Hamid_RT15-Nov-07 19:28 
AnswerRe: Change the size of radio button Pin
chandu00415-Nov-07 20:55
chandu00415-Nov-07 20:55 
QuestionMeaning of #pragma once Pin
manish.patel15-Nov-07 17:38
manish.patel15-Nov-07 17:38 
AnswerRe: Meaning of #pragma once Pin
George L. Jackson15-Nov-07 17:46
George L. Jackson15-Nov-07 17:46 
GeneralRe: Meaning of #pragma once Pin
Marimuthu.r15-Nov-07 22:09
Marimuthu.r15-Nov-07 22:09 
GeneralRe: Meaning of #pragma once Pin
Nelek15-Nov-07 22:37
protectorNelek15-Nov-07 22:37 
AnswerRe: Meaning of #pragma once Pin
Llasus15-Nov-07 17:47
Llasus15-Nov-07 17:47 
AnswerRe: Meaning of #pragma once Pin
Paresh Chitte15-Nov-07 21:37
Paresh Chitte15-Nov-07 21:37 

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.