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
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...
...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...
...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...
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.
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. :)
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...
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...
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...
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...
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! :)
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...
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...
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. :)
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. :/
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.