Using the game game engine in Coode::Blocks

Posted By: dracula

Using the game game engine in Coode::Blocks - 08/05/08 14:15

This might seem to be in the wrong section but please read on:

I was tring to get Code::Blocks to work with acknex.dll and I was having lots of problems with windows.h The compiler kept saying there was a problem with a certain line (RECT declaration in a structure) I remembered that litec.h includes windows.h and so I removed window.h from the header in my Code::Block program and used litec.h instead, and it compiled !

1. Why did I have to remove windows.h and get it to work with litec.h

2. The program compiled but it didn't open the level. I got the E355 error message. I linked Code::Block to acknex.lib and pointed Code::Block to the sdk and include directories. I used the published acknex.dll in the debug folder alongside the wmb level file.
Did I do it correctly ?

Thank you
Posted By: jcl

Re: Using the game game engine in Coode::Blocks - 08/05/08 14:35

litec.h is for lite-C only. It's possible that it compiles with other libraries, but it certainly is not intended for them. Maybe a WIN32_LEAN_AND_MEAN definition was missing in your Code::Blocks header.

The published acknex.dll is locked to its executable, so either publish it anew whenever you compile an new executable, or use the development acknex.dll while you're developing the program.

Apart from that, I am not familiar with Code::Blocks and thus can't help with specific questions.
Posted By: dracula

Re: Using the game game engine in Coode::Blocks - 08/05/08 14:57

You were correct, I had ommitted the WIN32_LEAN_AND_MEAN definition !

Surely, any C++ compiler could harness a DLL as long as it had the lib file ?
Or is there more to it than that ?

Thank you kindly.
© 2023 lite-C Forums