You can use SHELL to run a child program then return to your own program, but you will still need DOS (or a DOS clone) to run a PowerBASIC program. (PowerBASIC uses lots of services provided by the operating system to do it's magic.)
On the other hand, if you are simply writing some kind of command shell, DOS will still be running, but your program will have complete control over what the user sees.
If you plan to run big programs from within your program, I recommend you take a look at our UltraShell product http://www.infoms.com/us.htm . It swaps your program to XMS, EMS, or disk, leaving all but 3k of available memory for the new program to use.
Alan
------------------
Alan C. Earnshaw
Information Management Systems, Inc.
Announcement
Collapse
No announcement yet.
A few Questions
Collapse
X
-
I know this is going out on a limb, but I'm writing an OS. How do I run a program from PowerBASIC without DOS calls, then return control to my program.
Leave a comment:
-
A few Questions
Has anyone here ever tried to integrate the BOZOL interpreter by Erik Olsen into a program? I am trying to, but I always get a compile error about an array being a non-array variable. It compiles alone, but when I integrate it, it gets this error.
Also, does anyone know how to shut down an ATX PC from a PowerBASIC program? I have the code to reboot, but not to shut down. I also have an assembly program to perform this, but don't know how to integrate it into PowerBASIC.
I know this is going out on a limb, but I'm writing an OS. How do I run a program from PowerBASIC without DOS calls, then return control to my program. Similar to RUN or EXEC, but it needs to return control to my program.
-------------
AmosTags: None
Leave a comment: