paragui-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paragui-users] unhandled exceptions when using paragui calls in a dll


From: Keith Swyer
Subject: [paragui-users] unhandled exceptions when using paragui calls in a dll
Date: Tue, 4 Jun 2002 11:05:52 -0300

ok, here's what i've got. I had a few questions a while back on the ML
reguarding dynamic dll loading from the main app. It loads any dlls it finds
(soon to be added as a tag in the head section of the layout) and then
instantiates these. (i've used a base class with pure virtual functions
which are then made to fit your needs in the dlls) ...... anyway, the
problem is that in these seperate dlls i am not able to make any calls to
paragui creation functions without getting an unhandled exception fault. any
ideas of why this could be? i've linked the dll with the paragui.lib so
compiling is no problem. but when i run the dll function i get the error.
heres a paset of what the dll looks like....(it gets the error on the
PG_Button line. )


class lessons: public Area {

public:
    virtual void FillArea(void *data, void *data2){
        PG_Application* app = (PG_Application*)data;

        quit = new PG_Button(NULL, BTN_ID_CLOSE, PG_Rect(600,450,100,30),
"Quit");
     //quit.SetEventCallback(MSG_BUTTONCLICK, handle_exit, app);
     //quit.Show();

    }

    virtual void destroy(void){return;}

private:
    PG_Button *quit;
};


--Keith




reply via email to

[Prev in Thread] Current Thread [Next in Thread]