Creating windows in a DLL

T

Tim

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.lib")
int main()
{
IrrlichtDevice *device = createDevice(EDT_SOFTWARE,
dimension2d<s32>(512, 384), 16,false, false, false, 0);

while(1)
{
}

}

See http://irrlicht.sourceforge.net/tut001.html
 
U

Ulrich Achleitner

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?


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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top