Problem with QuickBasic 7.1

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

ReiKo.cry
Coder
Posts: 11
Joined: Wed Jul 09, 2008 3:56 pm

Problem with QuickBasic 7.1

Post by ReiKo.cry »

Hi :)

Anyway, I'm having problem with running QuickBasic 7.1 on my Windows XP SP2 machine. I never had problems with it until i buyed new keyboard and now I get this error and when I try to type in code, letters are all strange (for example : I press letter "U" and it writes down letter : "B" or some nubmer or weird sign).

This is error message :

"One or more CON code pages invalid for given keyboard code".

Can anyone help me?

Thank you.
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Post by burger2227 »

Does the keyboard work OK in Windows?

Sounds like the keyboard is not a standard keyboard for your language settings.
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
ReiKo.cry
Coder
Posts: 11
Joined: Wed Jul 09, 2008 3:56 pm

Post by ReiKo.cry »

Keyboard works OK in Windows.
It's Logitech keyboard.

I did try QBASIC and it works, but I need it to work in QuickBasic (4.5 or 7.1 it dosen't matter).
User avatar
Mentat
Veteran
Posts: 409
Joined: Tue Aug 07, 2007 3:39 pm
Location: NC, US

Post by Mentat »

Can you type in Notepad or any other text editor?
There's another in command prompt, if you like the feel of the QB IDE.
For any grievances posted above, I blame whoever is in charge . . .
ReiKo.cry
Coder
Posts: 11
Joined: Wed Jul 09, 2008 3:56 pm

Post by ReiKo.cry »

In Notepad I can type without problem, everything works.
When I run QuickBasic 7.1 from command prompt I still have the same errors.
User avatar
Mentat
Veteran
Posts: 409
Joined: Tue Aug 07, 2007 3:39 pm
Location: NC, US

Post by Mentat »

You can type your code in notepad, save it with a .bas extension, then open it up in QB.

It might give you the same problems, but in command prompt, type edit and you'll get an editor similar to QB's. Blue and ascii and all. But it isn't a compiler, so you'll still have to save with .bas .
For any grievances posted above, I blame whoever is in charge . . .
ReiKo.cry
Coder
Posts: 11
Joined: Wed Jul 09, 2008 3:56 pm

Post by ReiKo.cry »

Can't I just fix problem with QuickBasic IDE, don't tell me that noone had this problem before?

Thanks.
User avatar
Mentat
Veteran
Posts: 409
Joined: Tue Aug 07, 2007 3:39 pm
Location: NC, US

Post by Mentat »

ReiKo.cry wrote:Can't I just fix problem with QuickBasic IDE, don't tell me that noone had this problem before?

Thanks.
If you want to rewrite it... :P
It sounds much harder than it looks. I think QB will open up a file if you put it's name next to run QB as a parameter, then run it.
For any grievances posted above, I blame whoever is in charge . . .
ReiKo.cry
Coder
Posts: 11
Joined: Wed Jul 09, 2008 3:56 pm

Post by ReiKo.cry »

This dosen't work for me... any alternative for QuickBasic language, but another IDE(with compiling).

Thanks.
User avatar
Seb McClouth
Veteran
Posts: 342
Joined: Wed Nov 09, 2005 7:47 am
Location: Inside the Matrix...
Contact:

Post by Seb McClouth »

Run edit from the command line and see if the problem still exist there. if it does it means your DOS-keyboard setting aren't okay and you'll need to set them manually or you could just install dosbox.

grtz
QBinux is a Linux distribution with the aim of integrating the work of the vast community of free software developers at Pete's QBASIC Site in order to create a modern, performant, safe and easy to use system for system administrators and desktop users.
ReiKo.cry
Coder
Posts: 11
Joined: Wed Jul 09, 2008 3:56 pm

Post by ReiKo.cry »

Hi!

Yes! When I try using edit from command line, the problem is still there.
Any ideas how to fix it?
User avatar
Mentat
Veteran
Posts: 409
Joined: Tue Aug 07, 2007 3:39 pm
Location: NC, US

Post by Mentat »

Hm. Maybe the computer interprets some of the keyboard stuff (or all) in unicode, but the 16-bit stuff doesn't?
For any grievances posted above, I blame whoever is in charge . . .
ReiKo.cry
Coder
Posts: 11
Joined: Wed Jul 09, 2008 3:56 pm

Post by ReiKo.cry »

It works in DOSBOX but signs like : ",$()/&

are not on numeric, but they are all mixed up.
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Post by burger2227 »

Let me guess. You already threw the old keyboard away! If not, try it and see what happens. Otherwise FORGET ABOUT IT! You are apparently too stubborn to try another one!
Last edited by burger2227 on Thu Jul 10, 2008 1:04 pm, edited 1 time in total.
User avatar
Seb McClouth
Veteran
Posts: 342
Joined: Wed Nov 09, 2005 7:47 am
Location: Inside the Matrix...
Contact:

Post by Seb McClouth »

There could be another problem. I sometimes have the same. Make sure you a US keyboard and not UK keyboard. And also check which kind of driver is installed, a US or UK. Because my laptop is UK-based, as it came from there, but when I use DOSBOX, I have to change the keyboard layout to UK because it standard uses US-layout.

Btw what country are you in? Because there's lot of countries which use QWERTY-keyboards but where the numeric stuff and other signs are diffrent.

Grtz
QBinux is a Linux distribution with the aim of integrating the work of the vast community of free software developers at Pete's QBASIC Site in order to create a modern, performant, safe and easy to use system for system administrators and desktop users.
ReiKo.cry
Coder
Posts: 11
Joined: Wed Jul 09, 2008 3:56 pm

Post by ReiKo.cry »

Well, I'm from Croatia, and now I did change my Regional settings > Languages > Details into " English (US) ".

Now it works but I dont think this is solution cause I'm not from USA :P.

Anyways, the shift + 2 is not " in QuickBasic IDE , or I'm just missing something??

Thanks.
User avatar
Seb McClouth
Veteran
Posts: 342
Joined: Wed Nov 09, 2005 7:47 am
Location: Inside the Matrix...
Contact:

Post by Seb McClouth »

Try to find out if your keyboard is Croatian or Brithish because SHIFT + 2 making " is the same on my keyboard.

I'm checking some stuff out. There is a possiblity that you need to set your keyboard in DOS to Croatian... the commandline I mean by that... not DosBOX... Lemme see... apparently there's no way to do that in the command line...

For DOSBOX you could try KEYB yu.

Grtz
QBinux is a Linux distribution with the aim of integrating the work of the vast community of free software developers at Pete's QBASIC Site in order to create a modern, performant, safe and easy to use system for system administrators and desktop users.
User avatar
Mentat
Veteran
Posts: 409
Joined: Tue Aug 07, 2007 3:39 pm
Location: NC, US

Post by Mentat »

Oooohhhh. I gotta ask.

Does your keyboard come with an 'any' key?
For any grievances posted above, I blame whoever is in charge . . .
ReiKo.cry
Coder
Posts: 11
Joined: Wed Jul 09, 2008 3:56 pm

Post by ReiKo.cry »

Seb McClouth wrote:Try to find out if your keyboard is Croatian or Brithish because SHIFT + 2 making " is the same on my keyboard.

I'm checking some stuff out. There is a possiblity that you need to set your keyboard in DOS to Croatian... the commandline I mean by that... not DosBOX... Lemme see... apparently there's no way to do that in the command line...

For DOSBOX you could try KEYB yu.

Grtz
Well shift + 2 works for " sign everywhere except in QBASIC IDE.
ReiKo.cry
Coder
Posts: 11
Joined: Wed Jul 09, 2008 3:56 pm

Post by ReiKo.cry »

It dosent work with old keyboard.

Thx for calling me stubborn.
Post Reply