How to create device in c++ picture box ??
Posted: Mon Dec 11, 2006 11:08 am
I want to create irrlicht device in a picture box named 'pic_3d'.
But when I try to create, it returns errors:
Am I input wrong parameters into the arguments?
Any suggestions?
But when I try to create, it returns errors:
Here's my on_load function, form name is 'min':Error 9 error C2664: 'irr::createDevice' : cannot convert parameter 7 from 'System::IntPtr' to 'irr::IEventReceiver *' d:\irr_demo\clr\min.h 119
Error 18 error C2664: 'irr::createDevice' : cannot convert parameter 7 from 'System::IntPtr' to 'irr::IEventReceiver *' d:\irr_demo\clr\min.h 119
Code: Select all
private: System::Void min_Load(System::Object^ sender, System::EventArgs^ e) {
IrrlichtDevice *device = createDevice( video::EDT_SOFTWARE2, dimension2d<s32>(this->pic_3d->Width, this->pic_3d->Height), 16, false, false, false, this->pic_3d->Handle);
}
};
Any suggestions?