Creating windows in a DLL

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tim

    Creating windows in a DLL

    I was using the Irrlicht 3D graphics engine on Windows and noticed
    that you only need a console application to control everything.

    E.g. to create a window, all you need to do is include and link to the
    irrlicht library and call one function from a console app - how is
    this possible? How do you create a DLL that can open a window which is
    controllable from a simple console app?

    e.g.

    #include <irrlicht.h>
    using namespace irr;
    using namespace core;
    using namespace scene;

    #pragma comment(lib, "Irrlicht.l ib")
    int main()
    {
    IrrlichtDevice *device = createDevice(ED T_SOFTWARE,
    dimension2d<s32 >(512, 384), 16,false, false, false, 0);

    while(1)
    {
    }

    }

    See http://irrlicht.sourceforge.net/tut001.html
  • Ulrich Achleitner

    #2
    Re: Creating windows in a DLL

    On 17 Jan 2005 05:07:44 -0800, Tim <tsmith@micromi ll.com> wrote:
    [color=blue]
    > I was using the Irrlicht 3D graphics engine on Windows and noticed
    > that you only need a console application to control everything.
    >
    > E.g. to create a window, all you need to do is include and link to the
    > irrlicht library and call one function from a console app - how is
    > this possible? How do you create a DLL that can open a window which is
    > controllable from a simple console app?[/color]


    reading about "worker threads" and "gui threads" may help you to
    understand.

    besides, this is imho not the right place for this question since it is
    highly ms-windows specfic, and by no means a c++ problem.

    --
    have a nice day
    ulrich

    Comment

    Working...