Click here to Skip to main content
16,018,637 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: To add items programmatically to Combobox Pin
led mike14-Feb-08 4:28
led mike14-Feb-08 4:28 
GeneralRe: To add items programmatically to Combobox Pin
mikobi13-Feb-08 18:35
mikobi13-Feb-08 18:35 
GeneralRe: To add items programmatically to Combobox Pin
mikobi13-Feb-08 18:50
mikobi13-Feb-08 18:50 
Generalinitialise variables at the starting of program Pin
mikobi13-Feb-08 1:56
mikobi13-Feb-08 1:56 
GeneralGlobal variables Pin
mikobi13-Feb-08 1:55
mikobi13-Feb-08 1:55 
GeneralRe: Global variables Pin
Giorgi Dalakishvili13-Feb-08 4:14
mentorGiorgi Dalakishvili13-Feb-08 4:14 
GeneralRe: Global variables Pin
mikobi13-Feb-08 18:55
mikobi13-Feb-08 18:55 
QuestionHow to redirect data using asynchronous read operation.... Pin
Ashish Chauhan13-Feb-08 1:11
Ashish Chauhan13-Feb-08 1:11 
Hey all...

I'm trying to call an exe i.e (PING) with argument ("www.yahoo.com")
and want output in my textBox instead of console...
I manage to redirect output to my textBox and also manage to hide the console window but in synchronous way... i.e the output comes after ping get fully executed... I need the output in asynchronous way..The way it shows in console window(Line by Line)..

I know i've to use BeginOutputreadLine() but couldn't manage to write exact code..Can anyone help mr out..

Following is my code ..





Process^ a = gcnew Process;
ProcessStartInfo^ b = gcnew ProcessStartInfo;
b->FileName = "ping.exe";
b->Arguments = "www.yahoo.com";
b->UseShellExecute = false;
b->RedirectStandardOutput = true;
b->CreateNoWindow = true;
a->StartInfo = myProcessStartInfo;
a->Start();


StreamReader^ myStreamReader = a->StandardOutput;
textBox1->Text = myStreamReader->ReadToEnd();
a->Close();

Ash..

AnswerRe: How to redirect data using asynchronous read operation.... Pin
led mike13-Feb-08 6:41
led mike13-Feb-08 6:41 
GeneralRe: How to redirect data using asynchronous read operation.... Pin
Ashish Chauhan13-Feb-08 19:24
Ashish Chauhan13-Feb-08 19:24 
GeneralRe: How to redirect data using asynchronous read operation.... Pin
led mike14-Feb-08 9:18
led mike14-Feb-08 9:18 
Question[Message Deleted] Pin
Member 454227212-Feb-08 16:18
Member 454227212-Feb-08 16:18 
GeneralRe: where should i put the codes? Pin
led mike13-Feb-08 6:38
led mike13-Feb-08 6:38 
Questioncan not disassemble .lib file using ILDASM Pin
s196675m12-Feb-08 6:26
s196675m12-Feb-08 6:26 
AnswerRe: can not disassemble .lib file using ILDASM Pin
led mike12-Feb-08 7:28
led mike12-Feb-08 7:28 
GeneralRe: can not disassemble .lib file using ILDASM Pin
Mark Salsbery12-Feb-08 8:09
Mark Salsbery12-Feb-08 8:09 
GeneralRe: can not disassemble .lib file using ILDASM Pin
led mike12-Feb-08 9:31
led mike12-Feb-08 9:31 
GeneralRe: can not disassemble .lib file using ILDASM Pin
Mark Salsbery12-Feb-08 9:44
Mark Salsbery12-Feb-08 9:44 
GeneralRe: can not disassemble .lib file using ILDASM Pin
led mike12-Feb-08 9:56
led mike12-Feb-08 9:56 
Generalconvert Message To MSG Pin
javad_20058-Feb-08 1:13
javad_20058-Feb-08 1:13 
Generalerror C2371: 'IDataObject' : redefinition; different basic types Pin
s196675m7-Feb-08 7:15
s196675m7-Feb-08 7:15 
QuestionConvertion funtions Pin
lgatcodeproject6-Feb-08 22:55
lgatcodeproject6-Feb-08 22:55 
GeneralRe: Convertion funtions Pin
led mike7-Feb-08 4:31
led mike7-Feb-08 4:31 
GeneralRe: Convertion funtions Pin
lgatcodeproject11-Feb-08 22:15
lgatcodeproject11-Feb-08 22:15 
GeneralNetwork connection status Pin
vijboy5-Feb-08 12:14
vijboy5-Feb-08 12:14 

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.