Jump to content

Just can't get the c# headers to run


Blitzbat
 Share

Recommended Posts

hi there,

 

I'm getting every time I call leadwerks functions a BadImageFormatException.

 

What is wrong ?!

 

Here is the code:

           Leadwerks.Graphics.Initialize(800, 600);
           World w = new World();

           while (!Leadwerks.Keyboard.KeyHit(Key.Escape)) {
               World.Update(1);
               World.Render(EntityType.All);
               Leadwerks.Graphics.Flip(1);
           }

 

thank you :)

Link to comment
Share on other sites

hi there,

 

I'm getting every time I call leadwerks functions a BadImageFormatException.

 

What is wrong ?!

 

Here is the code:

           Leadwerks.Graphics.Initialize(800, 600);
           World w = new World();

           while (!Leadwerks.Keyboard.KeyHit(Key.Escape)) {
               World.Update(1);
               World.Render(EntityType.All);
               Leadwerks.Graphics.Flip(1);
           }

 

thank you :)

 

I am probably wrong since i dont do any C#/C/C++/C--/C!&%%% programming, but wouldn't it be:

w.Update(1);
w.Render(EntityType.All);

 

assuming that nothing else essential is missing from this code...

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

C# is known to have an issue when compiler settings are set to Any CPU. You have to compile to either x86 or x64, though since Leadwerks is 32-bit native, it is best to just compile using x86, since you can't really gain anything from x64 using a x86 engine.

52t__nvidia.png nVidia 530M cpu.gif Intel Core i7 - 2.3Ghz 114229_30245_16_hardware_memory_ram_icon.png 8GB DDR3 RAM Windows7_Start.gif Windows 7 Ultimate (64x)

-----

IconVisualStudio16.png Visual Studio 2010 Ultimate google-Chrome.png Google Chrome PhotoshopLinkIndicator.png Creative Suite 5 icon28.gif FL Studio 10 MicrosoftOfficeLive.png Office 15

-----

csharp.png Expert cpp.png Professional lua_icon.png Expert BMX Programmer

-----

i-windows-live-messenger-2009.pngskype-icon16.pngaim_online.pnggmail.pngicon_48x48_prism-facebook.pngtunein-web.pngyahoo.giftwitter16.png

Link to comment
Share on other sites

C# is known to have an issue when compiler settings are set to Any CPU. You have to compile to either x86 or x64, though since Leadwerks is 32-bit native, it is best to just compile using x86, since you can't really gain anything from x64 using a x86 engine.

 

yes, that's right! But an 64 bit version of leadwerks were great!

Link to comment
Share on other sites

C# is known to have an issue when compiler settings are set to Any CPU. You have to compile to either x86 or x64, though since Leadwerks is 32-bit native, it is best to just compile using x86, since you can't really gain anything from x64 using a x86 engine.

 

huh?! 3 times?

Link to comment
Share on other sites

C# is known to have an issue when compiler settings are set to Any CPU. You have to compile to either x86 or x64, though since Leadwerks is 32-bit native, it is best to just compile using x86, since you can't really gain anything from x64 using a x86 engine.

 

yes, that's right! But an 64 bit version of leadwerks were great!

Link to comment
Share on other sites

C# is known to have an issue when compiler settings are set to Any CPU. You have to compile to either x86 or x64, though since Leadwerks is 32-bit native, it is best to just compile using x86, since you can't really gain anything from x64 using a x86 engine.

 

yes, that's right! But a 64 bit version of leadwerks were great!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...