- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm using a CVF Windows program as a front end for running a number of console programs. To do this for a particular program I use the following:
if(CreateProcess(null,trim(fmis$exec)// &
'PPintersect.exe'//char(0), &
null,null,false,0,null,null,si,pi)==0)then
If the program PPintersect is run as a standalone, the console outputs a log of progress and at completion asks me to "press any key to continue", which is exactly what I want to happen. But when the program is run via CreateProcess, it still works, but it doesn't wait for the "press any key .." bit, so users don't get the chance to view the log. Is there a way around this?
With many thanks in advance,
Mike
if(CreateProcess(null,trim(fmis$exec)// &
'PPintersect.exe'//char(0), &
null,null,false,0,null,null,si,pi)==0)then
If the program PPintersect is run as a standalone, the console outputs a log of progress and at completion asks me to "press any key to continue", which is exactly what I want to happen. But when the program is run via CreateProcess, it still works, but it doesn't wait for the "press any key .." bit, so users don't get the chance to view the log. Is there a way around this?
With many thanks in advance,
Mike
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The "press any key" is inserted by the IDE when you run a program from within it - it is not inherent in an application. See this article for an example of how to emulate that.

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