Creating windows in a DLL



 DEVELOP > c-Plus-Plus > Creating windows in a DLL

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
Topic: DEVELOP > c-Plus-Plus
User: "Tim"
Date: 17 Jan 2005 07:07:44 AM
Object: 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.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
.

User: "Ulrich Achleitner"

Title: Re: Creating windows in a DLL 17 Jan 2005 07:14:15 AM
On 17 Jan 2005 05:07:44 -0800, Tim <tsmith@micromill.com> wrote:

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.
--
have a nice day
ulrich
.


  Page 1 of 1

1

 


Related Articles
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER