Click here to Skip to main content
15,906,081 members
Home / Discussions / C#
   

C#

 
RantRe: c# point of sale PinPopular
Harvey Saayman30-Jun-08 2:43
Harvey Saayman30-Jun-08 2:43 
QuestionHow can I open a hyperlink in a link click from my form in C#.net [modified] Pin
Anu Palavila30-Jun-08 0:47
Anu Palavila30-Jun-08 0:47 
AnswerRe: How can I open a hyperlink in a link click from my web form Pin
Vimalsoft(Pty) Ltd30-Jun-08 1:08
professionalVimalsoft(Pty) Ltd30-Jun-08 1:08 
AnswerRe: How can I open a hyperlink in a link click from my form in C#.net Pin
DaveyM6930-Jun-08 1:26
professionalDaveyM6930-Jun-08 1:26 
GeneralRe: How can I open a hyperlink in a link click from my form in C#.net Pin
Thomas Stockwell30-Jun-08 4:51
professionalThomas Stockwell30-Jun-08 4:51 
QuestionGridviw - my rowCommand does not run Pin
simsen30-Jun-08 0:42
simsen30-Jun-08 0:42 
AnswerRe: Gridviw - my rowCommand does not run Pin
simsen30-Jun-08 0:54
simsen30-Jun-08 0:54 
QuestionSystem.Diagnostics.Process used to start a c++ makefile ! Big issue ! Pin
ozzox30-Jun-08 0:37
ozzox30-Jun-08 0:37 
Hi guys,

I'm working on a c# tool to batch some compilation of different c++ projects
So evrything work fine except that I can't redirect the standard output for this command (it works for a simple dir cSmile | :)

For ex, this the code I use:
Process p = new System.Diagnostics.Process();
p.StartInfo = new ProcessStartInfo();
p.StartInfo.FileName = @"make.exe";
p.StartInfo.Arguments = "BUILD=release";
p.Start();


This works and open a cmd window
But I need to output the result in my c# app but when I enable the standard redirection like this
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.UseShellExecute = false;


The process get stucked (the make process is started but it doesnt seem to do anything)

I have a do/while like this
do
{
if (!p.HasExited)
{
p.Refresh();
Console.WriteLine("  total processor time: {0}",
                        p.TotalProcessorTime);
}
} while (!p.WaitForExit(1000));

In fact the processor time is always null (0)

I also try these options but no more results:
p.EnableRaisingEvents = true;
p.StartInfo.CreateNoWindow = true;


Any ideas ???
Thanks in advance !


AnswerRe: System.Diagnostics.Process used to start a c++ makefile ! Big issue ! Pin
Daniel Grunwald30-Jun-08 2:24
Daniel Grunwald30-Jun-08 2:24 
GeneralRe: System.Diagnostics.Process used to start a c++ makefile ! Big issue ! Pin
ozzox30-Jun-08 15:43
ozzox30-Jun-08 15:43 
AnswerRe: System.Diagnostics.Process used to start a c++ makefile ! Big issue ! Pin
leppie30-Jun-08 5:10
leppie30-Jun-08 5:10 
QuestionWeird data bindings issue Pin
Harvey Saayman30-Jun-08 0:22
Harvey Saayman30-Jun-08 0:22 
AnswerRe: Weird data bindings issue Pin
Vimalsoft(Pty) Ltd30-Jun-08 0:58
professionalVimalsoft(Pty) Ltd30-Jun-08 0:58 
AnswerRe: Weird data bindings issue Pin
Mbah Dhaim30-Jun-08 1:11
Mbah Dhaim30-Jun-08 1:11 
GeneralRe: Weird data bindings issue Pin
Harvey Saayman30-Jun-08 1:14
Harvey Saayman30-Jun-08 1:14 
QuestioncheckBox & ListView Pin
laziale30-Jun-08 0:20
laziale30-Jun-08 0:20 
AnswerRe: checkBox & ListView Pin
Vimalsoft(Pty) Ltd30-Jun-08 1:00
professionalVimalsoft(Pty) Ltd30-Jun-08 1:00 
GeneralRe: checkBox & ListView Pin
laziale30-Jun-08 1:19
laziale30-Jun-08 1:19 
QuestionDetermine incorrect String.Format format Pin
Stevo Z29-Jun-08 23:59
Stevo Z29-Jun-08 23:59 
AnswerRe: Determine incorrect String.Format format Pin
PIEBALDconsult30-Jun-08 5:10
mvePIEBALDconsult30-Jun-08 5:10 
QuestionSQL connection execute what? Pin
laziale29-Jun-08 23:13
laziale29-Jun-08 23:13 
AnswerRe: SQL connection execute what? Pin
Christian Graus29-Jun-08 23:22
protectorChristian Graus29-Jun-08 23:22 
GeneralRe: SQL connection execute what? Pin
laziale29-Jun-08 23:28
laziale29-Jun-08 23:28 
GeneralRe: SQL connection execute what? Pin
Christian Graus29-Jun-08 23:36
protectorChristian Graus29-Jun-08 23:36 
AnswerRe: SQL connection execute what? Pin
Mbah Dhaim29-Jun-08 23:27
Mbah Dhaim29-Jun-08 23:27 

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.