Issue when trying to use irrlicht in a .net managed form.
Posted: Fri Jul 06, 2007 5:35 pm
Greetings Irrlicht gurus:
I am getting a very odd error when trying to execute the following code. I get through compiling and linking this just fine in Visual C++ 2005 Express. Everything works fine right up to trying to execute the first line of Irrlicht.NET based code.
I keep getting an error of "An unhandled exception of type 'System.IO.FileNotFoundException' occurred in System.Windows.Forms.dll
Additional information: The specified module could not be found. (Exception from HRESULT: 0x8007007E)"
The code is below, this is within a windows button click event handler, and if I comment it out I do not get any errors. Also, I can do things like this->irrPanel->Focused = true;
this->Close();
etcetera. so the windows form itself is working just fine. What kills me is this compiles fine. I can see all of the relative object types, blah blah so I'm pretty darn sure I have all of my project directories set properly.
Any thoughts? This is driving me nuts, as it took a while for me to take the forum example vb .net code to parse it over to vc++ managed.
Irrlicht::Core::Dimension2D^ dim = gcnew Irrlicht::Core::Dimension2D(0,0);
IrrlichtDevice^ device = gcnew IrrlichtDevice(Irrlicht::Video::DriverType::OPENGL,
*dim , 16, false, false, false, false, this->irrPanel->Handle);
while (device->Run()){
if(this->irrPanel->Focused)
{
Irrlicht::Video::Color^ mycolor = gcnew Irrlicht::Video::Color();
mycolor->Set(0,000,100,100);
device->VideoDriver->BeginScene(true, true, *mycolor);
device->SceneManager->DrawAll();
device->VideoDriver->EndScene();
}
}
I am getting a very odd error when trying to execute the following code. I get through compiling and linking this just fine in Visual C++ 2005 Express. Everything works fine right up to trying to execute the first line of Irrlicht.NET based code.
I keep getting an error of "An unhandled exception of type 'System.IO.FileNotFoundException' occurred in System.Windows.Forms.dll
Additional information: The specified module could not be found. (Exception from HRESULT: 0x8007007E)"
The code is below, this is within a windows button click event handler, and if I comment it out I do not get any errors. Also, I can do things like this->irrPanel->Focused = true;
this->Close();
etcetera. so the windows form itself is working just fine. What kills me is this compiles fine. I can see all of the relative object types, blah blah so I'm pretty darn sure I have all of my project directories set properly.
Any thoughts? This is driving me nuts, as it took a while for me to take the forum example vb .net code to parse it over to vc++ managed.
Irrlicht::Core::Dimension2D^ dim = gcnew Irrlicht::Core::Dimension2D(0,0);
IrrlichtDevice^ device = gcnew IrrlichtDevice(Irrlicht::Video::DriverType::OPENGL,
*dim , 16, false, false, false, false, this->irrPanel->Handle);
while (device->Run()){
if(this->irrPanel->Focused)
{
Irrlicht::Video::Color^ mycolor = gcnew Irrlicht::Video::Color();
mycolor->Set(0,000,100,100);
device->VideoDriver->BeginScene(true, true, *mycolor);
device->SceneManager->DrawAll();
device->VideoDriver->EndScene();
}
}