Page 2 of 2

Posted: Fri Oct 19, 2007 5:13 pm
by consruiz
help I've tried to include the aviplayer
and it gives me this error

1>c:\program files\microsoft directx sdk (april 2007)\include\dinput.h(325) : error C2872: 'IUnknown' : ambiguous symbol
1> could be 'c:\program files\microsoft visual studio 8\vc\platformsdk\include\unknwn.h(110) : IUnknown'
1> or 'c:\irrlicht-1.3.1\include\iunknown.h(42) : irr::IUnknown'


I know its because i used the use namespace irr;

but is there another way other that putting irr:: on all my variable declarations?

thanks

Posted: Fri Oct 19, 2007 7:03 pm
by Ico
Get 1.4 from SVN or keep 1.3.1 for a while and just rename all of Irrlicht's "IUnknown" to something different (don't remember it's new official name atm).

Posted: Fri Oct 19, 2007 7:16 pm
by MasterGod
Ico wrote:(don't remember it's new official name atm)
IReferenceCounted

Posted: Fri Oct 19, 2007 7:29 pm
by hybrid
You can simply change the include order of windows.h and the irrlicht headers. This will also fix the problems with IUnknown (except if you do using namespace too much).

AVI player

Posted: Sat Oct 20, 2007 4:35 am
by consruiz
Thanks for the reply guys, I've tried to rearrange the headers
but I've used using namespace a lot and it still gives me problems.

All I want is to play a video at the beginning as intro cinematic, nothing fancy, in full screen, what's the fastest way of doing it in irrlitch

or can I just call another exe to play it or use media player somehow?

Sorry this is my first time using irrlicht and my first game. I need a quick fix my deadline is next week :cry: