Thread: need to view dos basic source

  1. #1
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429

    need to view dos basic source

    Someone gave me a DOS Basic module that they'd like me to convert to a VB app. Problem is, I can't seem to get my hands on the source for the origional app. I can open it and list the code, but there is no way for me to view all the source and save it to another format.

    Can anyone tell me how to view the source for a DOS Basic module?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > I can open it and list the code
    Huh?
    If you can view some of it, why can't you save all of it?

    If you load it into a hex-editor, can you see all the source?

  3. #3
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    I don't know how to save the source from DOS Basic. I tried the SAVE option, but that saves it back into the same format I already have.

    I've also tried opening it in a hex editor, but it still looks garbled.

    edit: and to answer the "huh?", when I list it, it scrolls through all the code and puts me at the end and there doesn't appear to be a way to scroll back up, or even copy what is on the screen.

    Is there a pipe feature in Windows or even in the DOS Basic app?

  4. #4
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,817
    I think you can redirect the output of whatever view/list program you are using to view the source. If you are at the command line for example, something like this:

    list module_name > output.txt
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  5. #5
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    Well, I'm actually running the DOS Basic executable to view the source, so I don't think that's an option.

  6. #6
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    You are saving it as a binary BASIC file. Go into DOS basic and in the save dialog box there is an option to save as a text file.

    Now you should be able to load it into Notepad or even into MSVB 6.

  7. #7
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    It's not even that compliated. It's all text-based and only gives me a handful of F-Key based options. One of them is save, but prompts me for a simple file name, not giving me choices of format.

    Does anyone have an executable like the one above (ie. Bubba)?

  8. #8
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    I sent you a PM telling you where to get a copy. I'll not post it here so as not to spam the board.

    Also, QB45 non-compiled comes with the Windows 95 CD. It's in Windows/Command somewhere. You can actually install QB45 from the Windows 95/98 CD.

    I don't really think MS cares about the DOS versions anymore.

  9. #9
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    Check your PMs, I've got other issues now.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Open Source and Security
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 06-17-2008, 01:23 AM
  2. To find the memory leaks without using any tools
    By asadullah in forum C Programming
    Replies: 2
    Last Post: 05-12-2008, 07:54 AM
  3. Basic telnet source
    By JustMe in forum Windows Programming
    Replies: 1
    Last Post: 05-27-2003, 02:24 AM
  4. Creepy DOS and BIOS functions (need help!!!)
    By James00 in forum C Programming
    Replies: 9
    Last Post: 05-05-2003, 12:40 AM