Unable to run any application using Mogre.dll or Mogre_d.dll

gasdeveloper

10-06-2011 21:52:23

I downloaded the current Mogre_1.7.1_beta SDK. Installed it, and then tried to run a demo application (pre-compiled). and they all crash. So I tried the tutorial framework and tried to execute it. and it compiles but when crashes when I try to execute it. So I started to build my own startup code and it crashed on the first call the anything in the Mogre.dll

I am running VS2008 C#
Windows 7 64bit

I have tried forcing compile to 32bit (x86) and I get an exception on HRESULT
The error I get when compiling for Any CPU setting (i am assuming its 64 default)
Could not load file or assembly 'Mogre_d, Version=1.7.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Any suggestions?

ghiboz

15-06-2011 10:14:55

Hi,
you need to compile your project using x86 and not any cpu (properties -> compiler)