Click here to Skip to main content
15,894,825 members
Home / Discussions / C#
   

C#

 
AnswerRe: Generics contraints "or?" Pin
Judah Gabriel Himango24-Aug-06 10:14
sponsorJudah Gabriel Himango24-Aug-06 10:14 
Questionhtml file parsing help Pin
pokabot24-Aug-06 6:39
pokabot24-Aug-06 6:39 
AnswerRe: html file parsing help Pin
Dustin Metzgar24-Aug-06 10:14
Dustin Metzgar24-Aug-06 10:14 
AnswerRe: html file parsing help Pin
coolestCoder24-Aug-06 20:52
coolestCoder24-Aug-06 20:52 
QuestionListView.Items.Add(....) problem Pin
thunderbirdje24-Aug-06 6:20
thunderbirdje24-Aug-06 6:20 
AnswerRe: ListView.Items.Add(....) problem Pin
Richard Deeming24-Aug-06 8:50
mveRichard Deeming24-Aug-06 8:50 
GeneralRe: ListView.Items.Add(....) problem Pin
thunderbirdje25-Aug-06 4:07
thunderbirdje25-Aug-06 4:07 
QuestionCompiling a program through Source Code of another Program Pin
zaigham_chaudhry24-Aug-06 6:06
zaigham_chaudhry24-Aug-06 6:06 
Hi there:
As you know we can compile a C Sharp program at DOS prompt like

csc MyProgram.cs

Where MyProgram.cs is the source code file.

Now i want to perform the same compilation through another C Sharp Program. Like i made a program named ShellExecution, which tries to compile another C Sharp Source Code File called "First.cs" lying in my c directory. The program runs fine without any exceptions; it opens the dos window and runs csc, but nothing happens and seems like the file name "First.cs" is not being passed to the csc.exe as a parameter. I have used the following code for executing the compilation process:

System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = "C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\CSC.exe";
process.StartInfo.Arguments = "C:\\First.cs";
process.StartInfo.UseShellExecute = true;
process.StartInfo.RedirectStandardOutput = false;
process.StartInfo.CreateNoWindow = false;
process.Start();
process.WaitForExit();


Please help me out!!!!
AnswerRe: Compiling a program through Source Code of another Program Pin
Dustin Metzgar24-Aug-06 10:11
Dustin Metzgar24-Aug-06 10:11 
Questiona little problem with MenuItem, Pin
vedmack24-Aug-06 5:23
vedmack24-Aug-06 5:23 
AnswerRe: a little problem with MenuItem, Pin
MoustafaS24-Aug-06 6:26
MoustafaS24-Aug-06 6:26 
GeneralRe: a little problem with MenuItem, Pin
vedmack24-Aug-06 20:34
vedmack24-Aug-06 20:34 
QuestionC#.net with system process Pin
xiaowenjie24-Aug-06 5:17
xiaowenjie24-Aug-06 5:17 
AnswerRe: C#.net with system process Pin
Judah Gabriel Himango24-Aug-06 5:41
sponsorJudah Gabriel Himango24-Aug-06 5:41 
GeneralRe: C#.net with system process Pin
thunderbirdje24-Aug-06 6:30
thunderbirdje24-Aug-06 6:30 
Questionone to many class association Pin
chacimulch24-Aug-06 4:57
chacimulch24-Aug-06 4:57 
AnswerRe: one to many class association Pin
beatles169224-Aug-06 5:26
beatles169224-Aug-06 5:26 
Questionnot working still. Re: one to many class association [modified] Pin
chacimulch24-Aug-06 8:43
chacimulch24-Aug-06 8:43 
AnswerRe: not working still. Re: one to many class association Pin
beatles169224-Aug-06 21:05
beatles169224-Aug-06 21:05 
QuestionHelp with syntax. Re: one to many class association Pin
chacimulch25-Aug-06 2:36
chacimulch25-Aug-06 2:36 
AnswerRe: Help with syntax. Re: one to many class association Pin
beatles169225-Aug-06 3:03
beatles169225-Aug-06 3:03 
QuestionRe: Help with syntax. Re: one to many class association [modified] Pin
chacimulch25-Aug-06 3:51
chacimulch25-Aug-06 3:51 
AnswerRe: Help with syntax. Re: one to many class association Pin
beatles169225-Aug-06 12:10
beatles169225-Aug-06 12:10 
AnswerRe: one to many class association Pin
Nader Elshehabi24-Aug-06 10:51
Nader Elshehabi24-Aug-06 10:51 
Questionusing Sission by c# Pin
mhattiyah24-Aug-06 4:46
mhattiyah24-Aug-06 4:46 

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.