Hello.
Yesterday, I downloaded the Beta version of the GLBASIC editor and I have a very serious problem. I type:
SETSCREEN 800, 400, 0
PRINT Hello World, 100, 100
SHOWSCREEN
MOUSEWAIT
END
The computer cannot see the command mousewait, whatever I do. The screen opens and then instantly closes. I have Windows Vista but I had the same problem on XP, too. I disconnected the mouse (for MOUSEWAIT) and then the keyboard (for KEYWAIT) but nothing changed. I tried the C++ editor and copied a similar code to the above. Nothing changed, the problem is still here. Can someone explain me why is this happening and how can I make it recognise that command? If you know PLEASE answer because I want to be a professional programmer (yeah, Im so lucky I stuck in the beginning).
Losts of respect,
Woka.
pls update to the new version!
on the GLBasic-Editor:
web / internet update
this code wirks fine:
SETSCREEN 800, 400, 0
PRINT "Hello World", 100, 100
SHOWSCREEN
MOUSEWAIT
END
I tried to update it but it tells me something about a Runtime Error. I will try again.
EDIT: I tried again, it cannot update. Damn, I MUST be cursed, when it comes to technology, I always have problems :'(
EDIT 2: Ok, I think it updated... lets see.... oh man, nothing happened. The command MOUSEWAIT is still invisible for the machine.
I downloaded the NEWEST version from the site. No success.
I'll give it a go with the demo. I'll Report back when I have some news...
I'm sorry, did I say Beta? I meant Demo version (sry).
By the way, your original example wont work anyway - its invalid.
What you need is :
SETSCREEN 800, 400, 0
PRINT "Hello World", 100, 100
SHOWSCREEN
MOUSEWAIT
END
It does work fine in the demo
I copied your code, activated debug mode and compiled before trying it (F8). I ran it (F5) and nothing changed.
Try 640,480,0 instead - 640,400 is usually an invalid screen resolution although the demo does change it automatically.
Tried. Compiled. Failed.
Last thing to try is :
DEBUG "1\n"
SETSCREEN 800, 400, 0
DEBUG "2\n"
PRINT "Hello World", 100, 100
DEBUG "3\n"
SHOWSCREEN
DEBUG "4\n"
MOUSEWAIT
DEBUG "5\n"
END
and watch the debug window at the moment - if it displays all the numbers then there is something on the machine simulating mouse presses and/or keypresses. Do you see the message stating that the demo is limited to 640x480 ?
If all the numbers aren't displayed then its crashing and you've got a problem with your machine - do the usual update Windows, graphics drivers and sound drivers etc etc.
I too use Vista - Vista x64 to be precise, and XP Home.
Tried. Compiled. Ran. Failed.
Maybe I should just abandon the language or try an online editor. Oh, I MUST be cursed...
And what were the results ? Were all the numbers displayed ?
I get this with your code.
Quote*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.7.038 SN:32c13952 - 2D, WIN32
Project 1.gbas (failed to open)
Wordcount:0 commands
compiling:
IncrediBuild skips: Project 1.gbas,
linking:
success
_______________________________________
*** Finished ***
Elapsed: 1.8 sec. Time: 14:55
Build: 1 succeeded.
The image appears, then istantly closes. No difference from before.
Well, IncrediBuild skips: Project 1.gbas denotes the file has been skipped, so its not surprising.
However, Project 1.gbas (failed to open) denotes that Vista is preventing the file from being opened.
Where is the project stored ?
QuoteProject 1.gbas (failed to open)
Oh dear! Did you use the project wizard to create the project? It's very strange.
My name > Documents> GLBasic > Project1 > The project is here.
In the GLBasic folder are also the folders Samples and Template.
Quote from: Kitty Hello on 2009-Aug-20
QuoteProject 1.gbas (failed to open)
Oh dear! Did you use the project wizard to create the project? It's very strange.
Yes, I used the project wizard.
I put a new code, so it can be repeated:
QuoteSETSCREEN, 640, 480, 0
WHILE TRUE
PRINT "HELLO", 100, 100
SHOWSCREEN
MOUSEWAIT
WEND
END
The code doesn't repeat itself. It behaves like before.
The compiler does not compile your program.
AHHHH!
Please don't have any greek characters in the whole path!
My operating system is in Greek but I use only english characters.
Why something tells me I am never going to solve the problem?
Give the enclosed zip file a go.
If it works (and it should), then there is a problem with your project.
In which case, can you zip up the complete project and attach it to a message.
[attachment deleted by admin]
Sounds like GLBasic is installed in a system directory.
If you installed GLBasic to your windows documents, then try this:
1. uninstall it completely from your control panel.
2. reinstall to the default directory.
Perhaps a compatibility issue in your system....
So...dont use spaces in your project name.
See if this helps.....start a new project from scratch with no spaces in name.
GLBasic is saved in the deafault directory. The project name has no spaces in its name.
Try any of the sample projects, please.
I solved the problem, I only had to change the hard disc and computer icons to english. Thank you all.
No problem!