Error when creating my firts aplication

lata22

08-02-2011 16:11:44

Hello to everyone!
Well i have instaled Mogre sdk and all the other features like visual studio directX sdk and all that.
I follow the instalation guid to create the first aplication but when i run it ,it gives me this error:
(Spanish)
No se puede encontrar el módulo especificado. (Excepción de HRESULT: 0x8007007E)
(English)
Can not find the specified module. (Exception from HRESULT: 0x8007007E)

I dont know why it gives me that error, how can i fixe it ?

Bye!

Luth

08-02-2011 17:41:12

Hi.

I'm not sure this will help, but you might check, if your output directory contains a file "ogre.log".
If so, Ogre tried to start, but probably didn't find some plugins it needs. Check the file and it should tell
you what was not found. If it didn't even try to start, you might use the wrong mogre files or wrong compile settings.

It might also be helpfull, if you post, what your first application looks like. Is it the old ExampleFramework or something else?
Which tutorial did you try to follow? What .dlls do you use (Mogre.dll or Mogre_d.dll?) and what compile settings you are using.
Debug? Release? AnyCPU (which may be wrong) or x86?

lata22

08-02-2011 18:14:56

Hi.

I'm not sure this will help, but you might check, if your output directory contains a file "ogre.log".
If so, Ogre tried to start, but probably didn't find some plugins it needs. Check the file and it should tell
you what was not found. If it didn't even try to start, you might use the wrong mogre files or wrong compile settings.

It might also be helpfull, if you post, what your first application looks like. Is it the old ExampleFramework or something else?
Which tutorial did you try to follow? What .dlls do you use (Mogre.dll or Mogre_d.dll?) and what compile settings you are using.
Debug? Release? AnyCPU (which may be wrong) or x86?


Hi, i dont have that file ogre.log, i use de Mogre.dll and MogreFramework.dll, in debug mode Any CPU and the compile settins i put copy "$(TargetPath)" "C:\OgreSdk\bin\$(ConfigurationName)". The aplication code is this one:

using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Mogre;
using MogreFramework;

namespace Test
{
static class Program
{
[STAThread]
static void Main()
{
OgreWindow win = new OgreWindow();

try
{
win.Go();
}
catch (System.Runtime.InteropServices.SEHException)
{
if (OgreException.IsThrown)
MessageBox.Show(OgreException.LastException.FullDescription,
"An Ogre exception has occurred!");
else
throw;
}
}
}
}



I delete the form as its says in the tutorial here:
http://www.ogre3d.org/tikiwiki/Mogre+Basic+Tutorial+0
and i follow the instalation here:
http://www.ogre3d.org/tikiwiki/MOGRE+Installation

And when i compile the aplication, it says me that error message:

(Spanish)
No se puede encontrar el módulo especificado. (Excepción de HRESULT: 0x8007007E)
(English)
Can not find the specified module. (Exception from HRESULT: 0x8007007E)

How can i fixe it ?
Thanks!!

Luth

09-02-2011 05:28:42

Ok. So it seems you are using an older Mogreversion. Which one is it? And which VisualStudio-Version do you use?
Please make sure, that you compile it for x86 and an older .Net Version. I think the older Mogre versions are not available for .Net Framework 4.0.
Try compiling it with .Net Framework 2 or something and in Release mode. For running it in Debug mode you have to use Mogre_d.dll and i had more
problems with it, then compiling in release mode.

An alternativ would be, to get a newer Mogre-Version with another Quickstart-project made by mystoke.

He wrote about the Mogre quick start project here:
http://www.ogre3d.org/addonforums/viewtopic.php?f=8&t=13160

You can get it here: (Update 1 (2010-07-30):
http://www.ogre3d.org/addonforums/viewtopic.php?f=8&t=13123&p=73617#p73617

lata22

09-02-2011 14:48:09

Ok. So it seems you are using an older Mogreversion. Which one is it? And which VisualStudio-Version do you use?
Please make sure, that you compile it for x86 and an older .Net Version. I think the older Mogre versions are not available for .Net Framework 4.0.
Try compiling it with .Net Framework 2 or something and in Release mode. For running it in Debug mode you have to use Mogre_d.dll and i had more
problems with it, then compiling in release mode.

An alternativ would be, to get a newer Mogre-Version with another Quickstart-project made by mystoke.

He wrote about the Mogre quick start project here:
http://www.ogre3d.org/addonforums/viewtopic.php?f=8&t=13160

You can get it here: (Update 1 (2010-07-30):
http://www.ogre3d.org/addonforums/viewtopic.php?f=8&t=13123&p=73617#p73617



Hi, im using Visual Studio 2008 , and i download the last Mogre version about 2 dayws ago.
I put it in realese mode and change de framework but it gives me the same error, im going to try with viewtopic.php?f=8&t=13160 and see what happend, thanks for all.
Bye then i tell the results