i need to program
i need to program
Its been a year or so since i've programmed, and it really stinks. here's my dilemma: Microsoft Windows 2000 Proffessional Edition.
It really doesn't like QB. I didn't see a search function for these forums, so I hope I'm not asking a question that's been asked already. I can run the program, but it soon crashed (within a minute) giving me some error. If anyone has any suggestions, I'd be gratefull to hear them.
Thanks for replying, and sorry if this has been asked already.
It really doesn't like QB. I didn't see a search function for these forums, so I hope I'm not asking a question that's been asked already. I can run the program, but it soon crashed (within a minute) giving me some error. If anyone has any suggestions, I'd be gratefull to hear them.
Thanks for replying, and sorry if this has been asked already.
-
- Veteran
- Posts: 703
- Joined: Sun Nov 14, 2004 7:36 am
- Contact:
Hi Deleter and welcome to Pete's QBasic Site.
A good alternative would be to give FreeBasic a try http://www.freebasic.net
it's as close as you can get to the QBasic syntax. It compiles, it does Windows Console, Windows GUI (with the API), DOS 32 bits and Linux...basically today it's considered, by many as the next evolutionary step for us QB coders .
I don't think you'll regret making the move at all. Have a look at it. it's definitaly worth the mouse click. Remember that Freebasic is a compiler. you an either use your favorite editor or better yet...take a look a FBIDE by VonGodric at http://fbide.sourceforge.net/ and IDE especially for FreeBasic.
These two combined is sure to not only kick you right out the door, pillows and all...but you'll be glad to be outside . It's an awesome combination. I know you won't regret this at all .
A good alternative would be to give FreeBasic a try http://www.freebasic.net
it's as close as you can get to the QBasic syntax. It compiles, it does Windows Console, Windows GUI (with the API), DOS 32 bits and Linux...basically today it's considered, by many as the next evolutionary step for us QB coders .
I don't think you'll regret making the move at all. Have a look at it. it's definitaly worth the mouse click. Remember that Freebasic is a compiler. you an either use your favorite editor or better yet...take a look a FBIDE by VonGodric at http://fbide.sourceforge.net/ and IDE especially for FreeBasic.
These two combined is sure to not only kick you right out the door, pillows and all...but you'll be glad to be outside . It's an awesome combination. I know you won't regret this at all .
When God created light, so too was born, the first Shadow!
MystikShadows
Need hosting? http://www.jc-hosting.net
Interested in Text & ASCII development? Look no further!
http://www.ascii-world.com
MystikShadows
Need hosting? http://www.jc-hosting.net
Interested in Text & ASCII development? Look no further!
http://www.ascii-world.com
Of course. read up on the SCREEN statement here : http://freebasic.net/keywords.php?pagenum=5#214
The fourth parameter is a switch for fullscreen. You can also change the resolution, colour depth and the number of pages you need.
The fourth parameter is a switch for fullscreen. You can also change the resolution, colour depth and the number of pages you need.
aha, this reference will be usefull, didn't think to look on their site, duh.
However, anytime i change the video pages, the program will run and all, but upon exit my program, the IDE will crash saying invalid memory was referenced or something. i realize this is a beta still, so is there a fix or not?
However, anytime i change the video pages, the program will run and all, but upon exit my program, the IDE will crash saying invalid memory was referenced or something. i realize this is a beta still, so is there a fix or not?
its little more than an example i pulled off the freebasic site
It's obviously not freebasic though , since the program compiles and runs, But when i close the window, the IDE crashes.
Code:
randomize timer
' Set good old 320x200 in 8bpp mode, but with 2 pages
SCREEN 13,,2
COLOR ,15
DIM x AS INTEGER
x = -40
' Let's work on page 1 while we display page 0
SCREENSET 1, 0
DO
CLS
Getmouse mx, my ,, buttons
LINE (x, 80)-(x + 39, 119), int(rnd*256), BF
pset (mx,my),1
x = x + 1
IF (x > 319) THEN x = -40
' Wait for vertical sync
WAIT &h3DA, 8
' Copy work page to visible page
SCREENCOPY
LOOP WHILE INKEY$ = ""
It's obviously not freebasic though , since the program compiles and runs, But when i close the window, the IDE crashes.
Code:
randomize timer
' Set good old 320x200 in 8bpp mode, but with 2 pages
SCREEN 13,,2
COLOR ,15
DIM x AS INTEGER
x = -40
' Let's work on page 1 while we display page 0
SCREENSET 1, 0
DO
CLS
Getmouse mx, my ,, buttons
LINE (x, 80)-(x + 39, 119), int(rnd*256), BF
pset (mx,my),1
x = x + 1
IF (x > 319) THEN x = -40
' Wait for vertical sync
WAIT &h3DA, 8
' Copy work page to visible page
SCREENCOPY
LOOP WHILE INKEY$ = ""