Quantcast C+ Programming: DOS Window Problem - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #1  
02-13-2004, 09:07 AM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
I'm have a DOS project control system I developed some years ago that presents data both onscreen and as HP/GL plotter files. It still performs well under NT and WindowsXP within a DOS window. It is written in Clipper (a C based dbase compiler) that utilizes a library I created containing C primitives for drawing onscreen.

My problem is this:

When I set video mode to graphics, the program runs perfectly, but, when returning from the routine, I cannot return to the window. I end up in full screen.

Is there a simple means for avoiding this. For example, is it possible to open another dos window, run the routine and close the window, returning to the original window. Or some other method.

The problem must be similiar to that encountered when showing a jpg called from within a dos window.

Sure would appreciate any thoughts on the subject, even though this strays a long way from video processing.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
02-13-2004, 10:05 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Hi nicksteel,

How about if you "spawn" a new process from your application
This way, you open a command prompt, and then run your application. Your application then runs as a "child", leaving the current DOS Box, and running separately. Then, when the application ends, it will automatically close, and you'll be back at the same DOS box you originally opened.
Look into the "exec..." C functions.
Hints here : http://www.c-for-dummies.com/lessons/bonus/05/

-kwag
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Authoring: DVD LAB Window Recovery ezysk Authoring VCD, DVD, Blu-ray 3 10-22-2003 09:31 AM
VirtualDub: Frames look worse in preview window? Jellygoose Video Encoding and Conversion 3 07-31-2003 11:57 AM
trying to view in window media player, but I get an error ? Gre1 Video Encoding and Conversion 2 06-23-2003 09:13 PM
KVCD: A question regarding the preview window? Reno Video Encoding and Conversion 7 04-04-2003 10:52 PM
HeadAC3he: Position in window centered on desktop? jorel Audio Conversion 0 01-01-2003 07:29 AM




 
All times are GMT -5. The time now is 12:08 AM  —  vBulletin © Jelsoft Enterprises Ltd