michael
Joined: 23 Aug 2006 Posts: 13
|
Posted: Wed Feb 20, 2008 7:33 am Post subject: I don't get arclib working here |
|
|
Hey forum.
I'm trying to get the following code working:
Code: | module hello;
import
arc.all;
int main()
{
// Open window with title, screen width, height, and bits per pixel
arc.window.open("Hello World", 400,300,0);
// Open input handling
arc.input.open();
// while the user doesn't press the QUIT button
while (!arc.input.keyDown(ARC_QUIT))
{
// process input
arc.input.process();
// clear the current screen
arc.window.clear();
// swap window buffers
arc.window.swap();
}
// close font system
//arc.font.close();
// clean ourselves up and exit
arc.window.close();
return 0;
}
|
It compiles without problems, but when I start the created exe file just nothing happens; no window opens.
I use dmd with tango (http://downloads.dsource.org/projects/tango/0.99.4/tango-0.99.4-bin-win32-dmd.1.024.zip) and installed arclib with dsss via "dsss net install arclib".
Any idea, why I don't get a window?
Greetings
michael |
|