Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. SJZero

    QBXL.NET has opened

    QBXL.NET, the evolution of QB Acclerator Magazine, has opened. It features reviews of many QB games, technical articles, and many entertaining extras. Check it out! http://www.qbxl.net
  2. SJZero

    Disk format

    Bad idea. Windows XP can run on FAT partitions, and many windows 98 upgrades use it. The best hackish way, aside from actually reading the partition table (which would be hard, make no mistake, and would almost certainly require ASM to access), you should be able to use chkdsk to determine the...
  3. SJZero

    256x256x256 Mode Q

    ...covers it pretty simply: memory location(past 0xa000, which the setModeQ command sets with the DEF SEG, along with setting up the video mode) = x * 256 + y. It's so simple because it's a chained mode, meaning the video memory is set up so you can just write the colour of the pixel in, unlike...
  4. SJZero

    256x256x256 Mode Q

    ...DECLARE SUB deinit () DECLARE SUB putd (x%, y%, colr%) DEFINT A-Z DECLARE SUB setModeQ () setModeQ WHILE INKEY$ = "" c = INT(RND(1) * 255) FOR a = 0 TO 255 FOR b = 0 TO 255 putd a, b, c NEXT b NEXT a WEND deinit SUB deinit () CLS SCREEN 13: SCREEN 0: WIDTH 80 END END SUB...
  5. SJZero

    256x256x256 Mode Q

    Yep, I think I have it. I just need to test it on another machine, and if that works, I'll post the code here for you to see. It's quite simple, since mode Q is a chained mode.
  6. SJZero

    256x256x256 Mode Q

    I've looked at the specs for ModeQ, and I'm almost positive I can get this running. Please give me a few days, and I will try to get some sample code running. Looks like it should run fast. :)
  7. SJZero

    libraries

    Does QB create the BI? (btw, you have to go /l then your lib name, otherwise it just loads qb.lib/qbx.lib/vbdos.lib depending on your version)
  8. SJZero

    Qbasic reads my .bas wrong

    You most certainly can, I just told you how. :P If that's the case, perhaps something else is going wrong?
  9. SJZero

    Qbasic reads my .bas wrong

    using wordpad, cut that extra text right out of the program using (appropriately enough) the cut command. Then save the file. Now open the file in QB, and make it into a window. point your text cursor to where the code started before, right click on the top of the window, go to edit, and hit...
  10. SJZero

    Limiter trial of a Program

    Why not write a file with the date of the first day the program is run into %systemroot%, then every day after, and if the clock is turned back before the previous date, the program disables itself by writing something in that file? It's a bit sloppy, but I dare you to find a better way under...
  11. SJZero

    particle tutorials?

    Barok, check QBXL. Either issue 2 or 3 has a nice tutorial on the fundamentals of particle systems.
  12. SJZero

    2d arrays

    Could you please elabourate? I read your question and it almost sounds like you mean a 2 element 1 dimensional array... and that would be... dim nums(1 to 2) for a = 1 to 2 ' this is unnessesary input nums(a) next a result = 0 for a = 1 to 2 ' this is really unnessesary. It's embarassing...
  13. SJZero

    Adding percents to variables?

    There is no way to make something an actual percentage ie. Print z would display "50%". What you can do, however, is possible to go z=n/100 to get .5, which you could then use as a percentage, just like someone above said. Remember, a huge part of programming is telling the computer...
  14. SJZero

    Cumulative Security Update for WinNT 4.0? SP6b? SP7?

    They won't. Just like DirectX 8 and IE6 don't work under Windows 95, microsoft is trying to nudge reluctant consumers towards it's later product line. After NT4 is almost a decade old, and you know the old adage--a customer who doesn't buy anything isn't a customer! :)
  15. SJZero

    wondering what uses poke/peek could have(just started qbasic)

    I'm using PEEK and POKE, along with IN and OUT, to do all the graphics for my RPG-in-progrsss, Quest for a King (http://powerusr.rpg-dev.net). Once you know where certain things are held in memory, you can use peek and poke to find out stuff about the current configuration, or change stuff, like...
  16. SJZero

    How to use 2+ keys at once to do 2+ thing at once

    Just turn it off before you activate the handler. Put it in the init routine for it even. :)
  17. SJZero

    How to use 2+ keys at once to do 2+ thing at once

    DPhrygian, try toggling the numlock. I can almost guarantee that it should fix many problems.
  18. SJZero

    Playing background WAVE files in a QBASIC RPG

    Might I add that even a pure DOS solution would cause more problems than it would solve? Look up DS4QB or it's descendants, DS4QB2 and DS4QB++. One of them (I can't remember which) will run flawlessly on all windows systems from 95 to XP. Speaking from experience, if you don't get a perfect...
  19. SJZero

    How to use 2+ keys at once to do 2+ thing at once

    http://disc.server.com/discussion.cgi?disc=190399;article=410;title=The%20Code%20Post Davs QB Code post is an invaluable resource. The above link is an ASM keyhandler like the others in this thread, but it includes an inkey$ substitute, as well as a couple other commands I can't live without. :)
  20. SJZero

    Saving SCREEN 12 as ??

    Like I said, it's very simple. :P (I use a similar technique myself because it's easier to optimize, and I know exactly what's going on. I don't really have the energy to learn a new graphics format just for the hell of it. :/

Part and Inventory Search

Back
Top