Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: QBasic 4.5/XP  (Read 7995 times)

0 Members and 1 Guest are viewing this topic.

Bulwark

    Topic Starter


    Beginner
  • I love YaBB 1G - SP1!
    QBasic 4.5/XP
    « on: March 16, 2008, 04:13:52 PM »
    Where can I find a list of addresses for using the POKE, PEEK and OUT commands in XP?

    e.g. &H0417 is the location of the Keyboard Control Byte when running Win.9n but I simply don't know where the KCB is in XP.   Also need to know the Port Addresses for the COM and Parallel ports.

    Thanks.

    Bones92



      Hopeful

    • Website Designer and Microcontroller Programmer
    • Thanked: 3
      • PIC Programming New Zealand
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows 7
    Re: QBasic 4.5/XP
    « Reply #1 on: March 17, 2008, 02:05:12 AM »
    Try looking in the survival guide, in QBASIC

    Bulwark

      Topic Starter


      Beginner
    • I love YaBB 1G - SP1!
      Re: QBasic 4.5/XP
      « Reply #2 on: March 17, 2008, 03:01:05 AM »
      Try looking in the survival guide, in QBASIC

      Oops, not QBasic but QuickBasic 4.5

      Not this one:
      Quote
      +--------------------------------------------------------+
      ¦ ¦
      ¦ Welcome to MS-DOS QBasic ¦
      ¦ ¦
      ¦ Copyright (C) Microsoft Corporation, 1987-1992. ¦
      ¦ All rights reserved. ¦
      ¦ ¦
      ¦ < Press Enter to see the Survival Guide > ¦
      +--------------------------------------------------------¦
      ¦ < Press ESC to clear this dialog box > ¦
      +--------------------------------------------------------+

      But this one:
      Quote
      Microsoft (R) QuickBASIC 4.50 (C) Copyright Microsoft Corporation,
      1985-1988

      I found the following here:
      Quote
      Q - Which QBasic commands do not work when running Windows?
      A - Almost all QBasic programming commands work when running in a Windows environment.  Specifically, the INP() function and OUT command do not work with Windows NT, Windows 2000, and Windows XP.  It is also possible that in some cases the PEEK() function and POKE commands may also not work.
      Not a good omen.




      Bones92



        Hopeful

      • Website Designer and Microcontroller Programmer
      • Thanked: 3
        • PIC Programming New Zealand
      • Computer: Specs
      • Experience: Experienced
      • OS: Windows 7
      Re: QBasic 4.5/XP
      « Reply #3 on: March 17, 2008, 08:51:41 PM »
      How pessismistic we are... I suggest you drop your :( and read http://www.aaroncake.net/electronics/qblpt.htm

      P.S. the version of Quickbasic i have on my computer has the survival guide  ;D

      Bulwark

        Topic Starter


        Beginner
      • I love YaBB 1G - SP1!
        Re: QBasic 4.5/XP
        « Reply #4 on: March 18, 2008, 02:31:05 AM »
        Yes, been there and  done that, and gotten the same sort of thing on many other sites.  It works perfectly in standalone Dos and Win.98 but in Win.2k/XP there is no output at the port regardless of which address is used. ::)

        Another site I visited (here) recommends the use of the PORTTALK driver in XP, I'll be following that up shortly. ;D

        Thanks for your interest. :-* ;)


        Bones92



          Hopeful

        • Website Designer and Microcontroller Programmer
        • Thanked: 3
          • PIC Programming New Zealand
        • Computer: Specs
        • Experience: Experienced
        • OS: Windows 7
        Re: QBasic 4.5/XP
        « Reply #5 on: March 18, 2008, 10:03:15 PM »
        well then i suggest a nifty DLL called win95IO which works on my winXP computer. Except the link I have to it is dead...

        Ncushe



          Rookie

          Re: QBasic 4.5/XP
          « Reply #6 on: March 19, 2008, 10:11:08 AM »
          hey sorry I'm a student and don't know a thing about computers but anyway do you know a site that i can go to to download c++

          Deerpark



            Egghead
          • Thanked: 1
            Re: QBasic 4.5/XP
            « Reply #7 on: March 19, 2008, 10:27:18 AM »
            You can't download C++, C++ is a language.
            What you can download is the software needed to develop software in C++.
            The bare minimum you need is a C++ compiler and a text editor. But most developers choose an IDE because it can speed up coding tremendously and provide tools for debugging and testing (to name a few).
            One such IDE is Microsoft Visual C++
            Any sufficiently advanced technology is indistinguishable from magic.
            Arthur C. Clarke (1917 - 2008)

            WillyW



              Specialist
            • Thanked: 29
            • Experience: Experienced
            • OS: Windows XP
            Re: QBasic 4.5/XP
            « Reply #8 on: March 19, 2008, 06:37:32 PM »
            hey sorry I'm a student and don't know a thing about computers but anyway do you know a site that i can go to to download c++

            See:
            http://www.computerhope.com/forum/index.php/topic,51398.0.html

            Free compilers are mentioned in that thread.
            .