Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Codepage switching
#31
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.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#32
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.
Reply
#33
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.
Reply
#34
Nope. Just load QB.QLB just by running QB this way:

Code:
QB /L
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#35
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.
Reply
#36
/L loads the QB.QLB quicklibrary, which contains the Interrupt and InterruptX functions. Other command line options are listed in the online help.
Reply
#37
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 Smile
I'd knock on wood, but my desk is particle board.
Reply
#38
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.
Reply
#39
I didn't see any unnecessary nitpicking. Somebody had a bad day, uh?
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#40
Actually, my day was peachy.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)