- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a Fortran Windows Application in which I have to start another Fortran program in a loop. I do this withthe call "stat =SYSTEM("program2.exe"), but any time program2 is executed a console window appears. I do not need this window because program2 only reads a file, performs something and writes to another file. In my case program2 was built as a console application.
How can I get rid of the console windows? What project type is needed for program2 to have no windows on the screen?
I already tried to make a subroutine of progam2, but that did not work correct, because in a loop the initial status of the variables is not reset. So I really need to run it as a program executable.
Guus
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Don't use SYSTEM - it creates the console window. Use CreateProcess instead. Example at http://h18009.www1.hp.com/fortran/visual/vfn09/page3.html#win32
![](/skins/images/4399995709D76C02984DDB9A1DB96C28/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page