Irrlicht in ActiveX plugin?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
constchar*
Posts: 14
Joined: Thu Sep 20, 2007 3:57 am

Irrlicht in ActiveX plugin?

Post 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.
dlangdev
Posts: 1324
Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:

Post 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.
Image
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post 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.
constchar*
Posts: 14
Joined: Thu Sep 20, 2007 3:57 am

Post 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.
ledgarl
Posts: 30
Joined: Wed Oct 25, 2006 1:58 pm
Location: Bogota,Colombia

Post by ledgarl »

hi I am interested about it.

Could they solve the problem?
dude3d
Posts: 25
Joined: Thu Sep 06, 2007 3:45 am

Post by dude3d »

You need pass the window handler of your activeX control to Irrlicht when creating a device.
Post Reply