Page 1 of 1

Irrlicht in ActiveX plugin?

Posted: Sun Jan 20, 2008 10:05 am
by constchar*
Anybody ever tried putting Irrlicht inside of an ActiveX or NPAPI plugin?
I tried it last night for the hell of it in an MFC ActiveX control and everything
went fine and well up until I added createDevice or createDeviceEx at which
point Visual Studio, well Regsvr32, started complaining it couldn't register
the component complaining about a "missing module".

I tried screwing around with the position of my includes and namespaces
and even added irr::, irr::video::, etc.. to the functions and types in my
code and regsvr32 still complains until I remove createDevice/createDeviceEx
from the code, in fact I even tried creating the device outside my OLE object
elsewhere in the code and it still did it.

Anyone actually ever tried this, and succeeded?

And while we're on the topic is there actually any point in using ActiveX/NPAPI
to create applets or content viewers/players (e.g. Macromedia Flash Player or Adobe PDF Viewer)
anymore?
I had been looking at Java but Java is unfamiliar territory to me and
I'd have to learn yet another language all over again.

Posted: Sun Jan 20, 2008 10:40 am
by dlangdev
And while we're on the topic is there actually any point in using ActiveX/NPAPI to create applets or content viewers/players (e.g. Macromedia Flash Player or Adobe PDF Viewer) anymore?
i was actually waiting for someone to post something like that above and here you are posting that awesome idea.

how far are you from getting it to alpha? and what browsers are going to be supported.

please let me know about it by posting your updates here regularly.

Posted: Sun Jan 20, 2008 11:08 am
by hybrid
I think there had been already working implementations for this in the code snippets forum. Probably using activeX as a search term will bring up some info.

Posted: Sun Jan 20, 2008 8:40 pm
by constchar*
Well dlang at the moment I'm just trying to see if I can get Irrlicht to
intialize and render a blank screen without crashing inside an ActiveX
control, if I can get that to work then I'll look at making the Firefox NPAPI
equivillent.

But the problem at hand right now is that apparently COM and createDeviceEx
don't get along very well so I need to figure something out.
In fact it might be a good idea, not just a simple workaround,
to put Irrlicht into a seperate DLL and make calls to it from my
container that way I can use the same core code in both ActiveX and NPAPI, sort of like an abstraction layer I suppose.

Posted: Mon Aug 25, 2008 6:06 am
by ledgarl
hi I am interested about it.

Could they solve the problem?

Posted: Sat Aug 30, 2008 2:35 am
by dude3d
You need pass the window handler of your activeX control to Irrlicht when creating a device.