Click here to Skip to main content
15,892,697 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: CLR,How to set RootFolder of FodlerBrowserDialog to be Current Working Directory Pin
Mark Salsbery15-Nov-09 5:52
Mark Salsbery15-Nov-09 5:52 
GeneralRe: CLR,How to set RootFolder of FodlerBrowserDialog to be Current Working Directory Pin
akira3216-Nov-09 20:07
akira3216-Nov-09 20:07 
QuestionHow to render DirectX9 on my CLR customed control? Pin
akira3211-Nov-09 4:58
akira3211-Nov-09 4:58 
AnswerRe: How to render DirectX9 on my CLR customed control? Pin
akira3212-Nov-09 7:02
akira3212-Nov-09 7:02 
GeneralRe: How to render DirectX9 on my CLR customed control? Pin
akira3212-Nov-09 7:03
akira3212-Nov-09 7:03 
GeneralRe: How to render DirectX9 on my CLR customed control? Pin
Lutosław13-Nov-09 7:11
Lutosław13-Nov-09 7:11 
GeneralRe: How to render DirectX9 on my CLR customed control? Pin
akira3216-Nov-09 20:07
akira3216-Nov-09 20:07 
QuestionHow to redirect and log the output of the VC++ console to a file? Pin
santoshkaif5-Nov-09 2:47
santoshkaif5-Nov-09 2:47 
I have developed an application(managed + unmanaged) in VC++ using Visual Studio 2005. It can switch to either Console or to windows form depending upon the no of parameters passed to the application on command prompt console. Its basically a windows application but console has been implemented with the help of Attachconsole(), allocconsole() & freeconsole().


Now if i run a batch file, using command prompt console, all the output messages of the application can be seen on the console as shown below.


c:\test> testapp -f filename -l operationname -t otherparams
filename selected..
operation in progress..
operation completed successfully!!



But if i redirect the output of the console to a text file, i dont see any messages in the text file once the operation is complete.
for eg:

c:\test> testapp -f filename -l operationname -t otherparams >> logfile.txt


Clarifications i need are
1. am i missing something to log it in a text file?
2. Can output messages from the console be logged in such a fashion. if yes, how?


Thanks in advance for help/suggestions on the same.
AnswerRe: How to redirect and log the output of the VC++ console to a file? Pin
Richard MacCutchan6-Nov-09 3:44
mveRichard MacCutchan6-Nov-09 3:44 
GeneralRe: How to redirect and log the output of the VC++ console to a file? Pin
santoshkaif7-Nov-09 19:31
santoshkaif7-Nov-09 19:31 
GeneralRe: How to redirect and log the output of the VC++ console to a file? Pin
Richard MacCutchan7-Nov-09 21:17
mveRichard MacCutchan7-Nov-09 21:17 
QuestionHow to test on a pushed button in the leave event of a textfield Pin
cad-JC5-Nov-09 0:03
cad-JC5-Nov-09 0:03 
AnswerRe: How to test on a pushed button in the leave event of a textfield Pin
Luc Pattyn5-Nov-09 0:44
sitebuilderLuc Pattyn5-Nov-09 0:44 
QuestionRe: How to test on a pushed button in the leave event of a textfield [modified] Pin
cad-JC5-Nov-09 1:06
cad-JC5-Nov-09 1:06 
GeneralRe: How to test on a pushed button in the leave event of a textfield Pin
Luc Pattyn5-Nov-09 1:20
sitebuilderLuc Pattyn5-Nov-09 1:20 
QuestionRe: How to test on a pushed button in the leave event of a textfield [modified] Pin
cad-JC5-Nov-09 1:57
cad-JC5-Nov-09 1:57 
AnswerRe: How to test on a pushed button in the leave event of a textfield Pin
Luc Pattyn5-Nov-09 2:20
sitebuilderLuc Pattyn5-Nov-09 2:20 
GeneralRe: How to test on a pushed button in the leave event of a textfield Pin
cad-JC5-Nov-09 2:38
cad-JC5-Nov-09 2:38 
QuestionRe: How to test on a pushed button in the leave event of a textfield Pin
cad-JC8-Nov-09 22:29
cad-JC8-Nov-09 22:29 
QuestionDelegate with a cli::array as a parameter (Error Reentrancy was Detected) [modified] Pin
Greggor014-Nov-09 10:31
Greggor014-Nov-09 10:31 
AnswerRe: Delegate with a cli::array as a parameter (Error Reentrancy was Detected) Pin
Dave Doknjas4-Nov-09 10:58
Dave Doknjas4-Nov-09 10:58 
GeneralRe: Delegate with a cli::array as a parameter (Error Reentrancy was Detected) Pin
Greggor016-Nov-09 2:36
Greggor016-Nov-09 2:36 
QuestionGet Command line returned string Pin
wael_r3-Nov-09 22:54
wael_r3-Nov-09 22:54 
QuestionHow to close/hide the console window when window form is open? Pin
santoshkaif1-Nov-09 23:33
santoshkaif1-Nov-09 23:33 
AnswerRe: How to close/hide the console window when window form is open? Pin
N a v a n e e t h1-Nov-09 23:44
N a v a n e e t h1-Nov-09 23:44 

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.