Qbasicnews.com

Full Version: I sure hope this is cool, coz it took its time
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
wat is dif between win32 and a exe, i never understood
win32 means 32 bit mode: in 32 bit mode, the computer processes instructions (like add, or multiply) for 2 or more 32 bit combinations.

exe is the suffix name of an executable.
WIN32 is a platform. Other platforms are DOS16, DOS32, WIN16, Linux, etc.

WIN32 is the platform provided by Windows 9X onwards.

EXE files are executables for DOS16, DOS32, WIN16 or WIN32.

QB produces EXE files for DOS16. Most of people can't run DOS16 programs in their machines unless they use an emulator such as DosBOX.

fB produces EXE files for DOS32, WIN32 or Linux, depending on the version.
thnx na_th_an, now that i know qb complies in DOS 16, and FB compiles in win32, i may just switch to fb for the compiling
That's a good idea. There are a couple of differences, but they are minimal. You can perfectly finish your game in QB and then port it yourself to fB. Only a few changes if you are using pure QB. And you can always ask for help here.

Compiling for WIN32 will assure a wider audience, which is always good.
pure qb??? well anyway if you want to chk out my code, its my paint program topic, the first post is updated daily with the most recent code of that day, normally final update at 10pm my time, new york/toronto time, so when u make subs, they dont show up in the qb code window, but would they still work in fb though??? im thinkin yes, so i guess ill compile with fb, and quick Q, my monitor is wierd, in screen 13, i cant see anything with x = 3 or less, its wierd, and the monitors settings dont work, like the buttons on it, can i change this any otehr way???
Quote:pure qb???

i think they mean not using ASM or In/Out type stuff.
i dont know how to use ASM or I/O, i just use wat i hav, i dont even use subs, i use GOSUB, i never could get SUB's to wuite work properly, and the tutorial didnt help much either, but meh, wat can ya do, i guess im pure qb then
Screw GOSUBs as fast as you can.

SUBs are really easy to implement.

Code:
SUB addAndPrint (a1%, a2%)
   b% = a1% + a2%
   PRINT b%
END SUB

You call it:

Code:
addAndPrint 2, 3

If you were doing this with GOSUB, it would be this way:

Code:
a1% = 2
a2% = 3
GOSUB addAndPrint
END

addAndPrint:
b% = a1% + a2%
PRINT b%
RETURN

SUBs advantages are many. The best one of them being the "namespace isolation", i.e., unless variables are shared or global, you got a "clean" space for naming your variables. In the above example, in the SUB case, b% inside the sub isn't the same that b% outside the SUB, so you can use another b% outside which won't be overwriten. In the GOSUB case, b% will be overwriten as soon as you call the subroutine.

SUBs don't show with the rest of the code in the QB IDE (well, they do, just hit F2 and select one Wink), but they are saved in your BAS file.
Well thanks for the information on SUB's, maybe I'll use them in my program once I get it working, or if I can't get it to work than I'll just change to SUB's, but in my program, alot of the GOSUB's use the values x%, y%, colour%, and dot%, which are global, so they would be hard to make SUB's with.
Pages: 1 2 3 4