OgreDotNet with VB.Net Issues

rohan

09-03-2006 13:02:39

Greetings,

I've been trying (for some hours now) to get OgreDotNet with VB.Net, to no avail.

I'm using the express editions of both VC++ and VB.Net to get this going, and I've been stuck in the same place for hours now:

When executing even the most simple test app imaginable, I get the following error: "System.DllNotFoundException: Unable to load DLL 'OgreBindings': The specified module could not be found."

I've already searched these forums, and tried the numerous solutions I've found. I've tried pre-built binaries as well as my own compiled ones, and I've tried moving the DLLs into every directory the app could possibly be searching in. I found a thread making a reference to the fact that (for some reason) the .PDB files are also required, and put them in there. No joy.

I'm really quite perplexed here - Ogre works just fine in C++, but I'm out of ideas here as to why it isn't working with VB.Net.

Can anyone offer any assistance?

Rohan

rastaman

09-03-2006 17:22:53

are you running it from the VS IDE or running the exe directly ?
if from the IDE make sure your project working directory is pointing to the right place ogredotnet/bin/debug

also make sure you have all the dlls there. Here is my list:
ogredotnet\Bin\Debug

03/09/2006 12:08p <DIR> .
03/09/2006 12:08p <DIR> ..
09/25/2005 08:15a 2,699,264 CEGUIBase_d.dll
03/09/2006 11:31a 606,208 CeguiBindings.dll
03/09/2006 11:31a 2,493,440 CeguiBindings.pdb
03/09/2006 11:32a 425,984 CeguiDotNet.dll
03/09/2006 11:32a 1,000,960 CeguiDotNet.pdb
09/25/2005 08:17a 507,904 CEGUITaharezLook_d.dll
09/25/2005 08:18a 565,248 CEGUIWindowsLook_d.dll
01/07/2005 12:12p 1,388,544 cg.dll
03/09/2006 11:34a 20,480 DemoCEGUI.exe
03/09/2006 11:34a 17,920 DemoCEGUI.pdb
03/09/2006 11:34a 20,480 DemoCeguiMenus.exe
03/09/2006 11:34a 15,872 DemoCeguiMenus.pdb
03/09/2006 11:34a 20,480 DemoCelShading.exe
03/09/2006 11:34a 15,872 DemoCelShading.pdb
03/09/2006 11:34a 28,672 DemoCustomObjects.exe
03/09/2006 11:34a 38,400 DemoCustomObjects.pdb
03/09/2006 11:34a 24,576 DemoFireworks.exe
03/09/2006 11:34a 22,016 DemoFireworks.pdb
03/09/2006 11:53a 20,480 DemoGAPyramid.exe
03/09/2006 11:53a 17,920 DemoGAPyramid.pdb
03/09/2006 11:53a 28,672 DemoGrass.exe
03/09/2006 11:37a 420 DemoGrass.log
03/09/2006 11:53a 24,064 DemoGrass.pdb
03/09/2006 11:34a 16,384 DemoParticleFX.exe
03/09/2006 11:34a 13,824 DemoParticleFX.pdb
03/09/2006 11:34a 20,480 DemoRenderToTexture.exe
03/09/2006 11:34a 15,872 DemoRenderToTexture.pdb
03/09/2006 11:34a 20,480 DemoRSQ.exe
03/09/2006 11:34a 15,872 DemoRSQ.pdb
03/09/2006 11:34a 20,480 DemoSkyBox.exe
03/09/2006 11:34a 15,872 DemoSkyBox.pdb
03/09/2006 11:34a 36,864 DemoWinForms.exe
03/09/2006 11:34a 19,968 DemoWinForms.pdb
10/28/2005 08:43p 757,760 devil.dll
02/28/2006 10:28a 176,128 GaCallbackInterface_Ogre_d.dll
02/28/2006 10:28a 3,533,824 GaCallbackInterface_Ogre_d.pdb
03/09/2006 11:34a 315,392 GangstaBindings.dll
03/09/2006 11:34a 3,869,696 GangstaBindings.pdb
03/09/2006 11:34a 122,880 GangstaDotNet.dll
03/09/2006 11:34a 343,552 GangstaDotNet.pdb
02/28/2006 09:47a 299,008 Gangsta_d.dll
02/28/2006 09:47a 1,362,944 Gangsta_d.pdb
10/28/2005 08:43p 61,440 ilu.dll
10/28/2005 08:44p 13,312 ilut.dll
02/28/2006 09:48a 188,416 libGaPhysicsDriver_Newton_d.dll
02/28/2006 09:48a 184,320 libGaPhysicsDriver_ODE_d.dll
02/28/2006 09:49a 1,003,520 libGaPhysicsDriver_TrueAxis_d.dll
03/09/2006 11:31a 45,056 Math3D.dll
03/09/2006 11:31a 89,600 Math3D.pdb
02/01/2006 06:54a 438,272 Newton.dll
09/21/2005 03:21p 417,792 ode.dll
03/09/2006 12:08p 20,480 ODNTester.exe
03/09/2006 12:08p 15,872 ODNTester.pdb
03/09/2006 12:08p 212 ogre.cfg
03/09/2006 12:09p 14,329 Ogre.log
03/09/2006 11:32a 3,088,384 OgreBindings.dll
03/09/2006 11:32a 13,077,504 OgreBindings.pdb
03/09/2006 11:33a 86,016 OgreBindings_Cegui.dll
03/09/2006 11:33a 3,247,104 OgreBindings_Cegui.pdb
03/09/2006 11:34a 32,768 OgreDotNet.Cegui.dll
03/09/2006 11:34a 48,640 OgreDotNet.Cegui.pdb
03/09/2006 11:33a 1,175,552 OgreDotNet.dll
03/09/2006 11:33a 3,094,016 OgreDotNet.pdb
11/20/2005 11:18a 155,648 OgreGUIRenderer_d.dll
03/09/2006 12:09p 3,096 OgreLeaks.log
11/20/2005 11:17a 6,461,440 OgreMain_d.dll
03/09/2006 12:08p 1,140 OgreMemory.log
11/20/2005 11:17a 532,480 OgrePlatform_d.dll
10/04/2005 03:50p 286 plugins.cfg
11/20/2005 11:17a 434,176 Plugin_BSPSceneManager.dll
11/20/2005 11:17a 118,784 Plugin_CgProgramManager.dll
11/20/2005 11:17a 516,096 Plugin_OctreeSceneManager.dll
11/20/2005 11:18a 244,736 Plugin_ParticleFX.dll
11/20/2005 11:18a 606,208 RenderSystem_Direct3D7.dll
11/20/2005 11:18a 2,445,312 RenderSystem_Direct3D9.dll
11/20/2005 11:18a 1,216,512 RenderSystem_GL.dll
01/19/2006 08:29a 1,154 resources.cfg
03/09/2006 12:09p 44 RSQTest.log
03/09/2006 11:34a 16,384 SkeletalAnimation.exe
03/09/2006 11:34a 13,824 SkeletalAnimation.pdb
11/17/2003 11:29p 55,808 zlib1.dll
81 File(s) 60,146,889 bytes

rohan

09-03-2006 22:40:33

Thanks - that partially worked. :)

Hrm.

I must be missing something with the directories, here. I ended up making a temporary directory and shuffling the .dll files you noted, the sample media directory, and a compiled VB.Net executable into the directory.

It whinged about wanting MSVCP80{,d}.dll and MSVCR80{,d}.dll, so I copied them in there too.

Then I got this little gem:

An application has made an attempt to load the C runtime library without using a manifest. This is an unsupported way to load Visual C++ DLLs. You need to modify your application to build with a manifest. For more information, see the "Visual C++ Libraries as Shared Side-by-Side Assemblies" topic in the product documentation.

Nice.

I'm about to build the whole thing from scratch, trying to make sure all my directories and files are going into the right places, but before I do that, does anyone here recognise this error, and know what I'm doing wrong?

Thanks,

Rohan