Hi o/
I decided this morning to teach myself C++ \o/... 6 hours later Im just about ready to throw in the towel :)
Anyways I have a minor annoyance you good ppl might be able to help me with.
I created a simple code to open a .exe file in C# wich work fine (all hail C# :P)
Now this is fairly simple. Runs the dotnet.exe and when that closes, it echo's "omg"
And now for the problem.
I tried to do the same thing in C++
No matter what I do, the proc.. after I call the Start(...) function, gives me a Exception saying there is no proccess attached to it.
I tried
but it gives me a build error.
Anybody know what to do?
I decided this morning to teach myself C++ \o/... 6 hours later Im just about ready to throw in the towel :)
Anyways I have a minor annoyance you good ppl might be able to help me with.
I created a simple code to open a .exe file in C# wich work fine (all hail C# :P)
Code:
System.Diagnostics.Process proc;
proc = System.Diagnostics.Process.Start(@"C:\dotnetfx.exe");
proc.WaitForExit();
MessageBox.Show("omg");
And now for the problem.
I tried to do the same thing in C++
Code:
System::Diagnostics::Process proc;
proc.Start("C:\\dotnetfx.exe");
proc.WaitForExit();
MessageBox::Show("omgOMG");
I tried
Code:
proc = System::Diagnostics::Process::Start("C:\\dotnetfx.exe")
Anybody know what to do?
Comment