FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

I don't get arclib working here

 
Post new topic   Reply to topic     Forum Index -> ArcLib
View previous topic :: View next topic  
Author Message
michael



Joined: 23 Aug 2006
Posts: 13

PostPosted: Wed Feb 20, 2008 7:33 am    Post subject: I don't get arclib working here Reply with quote

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
Back to top
View user's profile Send private message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Wed Feb 20, 2008 9:17 am    Post subject: Reply with quote

Do you have all these DLL files http://www.dsource.org/projects/arclib/browser/downloads/dll in the same folder as the exe?

Is there an arc.log file that you can post the contents of here?

Thanks.

~ Clay
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> ArcLib All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group