Posts: 6,419
Threads: 74
Joined: Mar 2002
Yeah, Alun, I just don't get your point. Let's say that in CP 348834 ascii char "200" displays a little face, and you have CP 3843 in which ascii char "200" displays a star, but your program was designed in a computer with CP 348834 and you used that little face. Just change the font so char "200" displays a little face and you are done. I can't see what is different between doing this and setting up the computer in AUTOEXEC.BAT. Do run Plasma's executable and see it for yourself.
Posts: 14
Threads: 1
Joined: Dec 2003
That's magic, the exe file certainly changes the codepage, but at the moment I haven't figured how to configure the bas file for my needs, looks I will have to add the subroutine to my programs, call this at the start to change to codepage 437, and call it again on program exit to restore the old codepage. Not forgetting of course to include cp437.bin in the same directory. Will play around with it tomorrow.
Posts: 14
Threads: 1
Joined: Dec 2003
Well I played around with one of my programs, added the necessary lines and included the sub program. This was done by copy and paste to avoid any inevitable typos. Running this throws up an error in the sub program, viz: "Subprogram not defined"and with INTERRUPTX highlighted. I then ran CODEPAGE.BAS and had the same error thrown up, codepage.exe runs without any problem so looks like there's an error somewhere in the bas file.
Posts: 6,419
Threads: 74
Joined: Mar 2002
Nope. Just load QB.QLB just by running QB this way:
Posts: 14
Threads: 1
Joined: Dec 2003
Yes that cured the problem, I had forgotten the note at the top of CODEPAGE.BAS to start QB with /L, can now produce exe files which show the original intended extended 437 characters. Can you please explain what switch /L does, the Quickbasic book I always used didn't mention any start switches, there may well be other switches that could be useful.
Posts: 1,752
Threads: 21
Joined: Jun 2002
/L loads the QB.QLB quicklibrary, which contains the Interrupt and InterruptX functions.
Other command line options are listed in the online help.
Posts: 3,279
Threads: 170
Joined: Nov 2003
Technically, /L specifies to load a quicklibrary...not specifying which library to load will load qb.qlb by default. Hence why many FAQs and whatnot just say "QB /L". It is more appropriate to do "QB /L QB", although "QB /L" works fine if you have nothing else after the /L
I'd knock on wood, but my desk is particle board.
Posts: 1,752
Threads: 21
Joined: Jun 2002
Technically, /L loads QB.QLB, and /L [libraryname] loads the specified library. "/L QB" and "/L" do the exact same thing; neither is "more appropriate" than the other.
Next time, please refrain from unnecessary nitpicking. Thank you.
Posts: 6,419
Threads: 74
Joined: Mar 2002
I didn't see any unnecessary nitpicking. Somebody had a bad day, uh?
Posts: 1,752
Threads: 21
Joined: Jun 2002
Actually, my day was peachy.