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.
Irrlicht in ActiveX plugin?
i was actually waiting for someone to post something like that above and here you are posting that awesome idea.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?
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.
-
- Posts: 14
- Joined: Thu Sep 20, 2007 3:57 am
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.
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.