Announcement

Collapse
No announcement yet.

A few Questions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.


    -------------

    Amos

    #2
    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.
    You should check out The FreeDOS Project. There is also a book on the FreeDOS kernel called "FreeDOS Kernel; An MS-DOS Emulator for Platform Independence and Embedded Systems Development" by Pat Villani (ISBN: 0879304367).
    If you try to make something idiot-proof, someone will invent a better idiot.

    Comment


      #3
      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.
      Alan C. Earnshaw
      Information Management Systems, Inc.
      http://www.infoms.com

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎