User Profile

Collapse

Profile Sidebar

Collapse
fal11
fal11
Last Activity: Mar 8 '13, 03:21 PM
Joined: Jan 23 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • No,I am a software engineer
    I want to compile a cpp code file within c# code of my website
    (I am using asp.net)I want using visual studio command line and this is my code but does not work.can you help me?
    Process.Start(" cmd.exe","/c " + @"/k ""C:\Progra m Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsa ll.bat"" x86");
    Console.WriteLi ne("cl/EHsc a.cpp"...
    See more | Go to post

    Leave a comment:


  • compile and execute a cpp code file with visual studio command line

    this is my C# code
    Code:
    System.IO.Directory.SetCurrentDirectory("C:/Users/fahime/Documents/Visual Studio 2010/WebSites/MyWebSite/UserFiles/ProblemAnswers/");
    Process.Start("cmd.exe", @"/k ""C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"" x86");// + @"/k C:\Users\fahime\Documents\Visual Studio 2010\WebSites\MyWebSite\UserFiles\ProblemAnswers cl/EHsc 4.cpp");//
    ...
    See more | Go to post
    Last edited by acoder; Jan 23 '13, 10:18 PM. Reason: Please use [code] tags when posting code
No activity results to display
Show More
Working...