1 Replies - 468 Views - Last Post: 01 March 2011 - 12:52 PM

#1 CodeFace  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 03-February 11

system() and GUI vc++

Posted 28 February 2011 - 05:36 PM

Hi,
I am using Visual C++ 2010, and I have a windows forms application where I need to call system() in the background, but when it is executed, a cmd.exe command window pops up. Is there any way of using system() without having the window be displayed? thanks!

This post has been edited by CodeFace: 28 February 2011 - 05:39 PM

Is This A Good Question/Topic? 0
  • +

Replies To: system() and GUI vc++

#2 RudiVisser  Icon User is offline

  • .. does not guess solutions
  • member icon

Reputation: 1001
  • View blog
  • Posts: 3,555
  • Joined: 05-June 09

Re: system() and GUI vc++

Posted 01 March 2011 - 12:52 PM

Look into the Process class within System.Diagnostics to execute commands.

Of course you can always use the native CreateProcess, but if you're doing .NET using the Process class will probably serve you 100x better.

This post has been edited by RudiVisser: 01 March 2011 - 12:53 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1