Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Newbie Questions
by AndrewAMD. 12/04/23 11:14
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
4 registered members (TipmyPip, Quad, alibaba, izorro), 545 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Using the game game engine in Coode::Blocks #219908
08/05/08 14:15
08/05/08 14:15
Joined: Apr 2008
Posts: 437
dracula Offline OP
Senior Member
dracula  Offline OP
Senior Member

Joined: Apr 2008
Posts: 437
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

Re: Using the game game engine in Coode::Blocks [Re: dracula] #219911
08/05/08 14:35
08/05/08 14:35
Joined: Jul 2000
Posts: 27,967
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,967
Frankfurt
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.

Re: Using the game game engine in Coode::Blocks [Re: jcl] #219917
08/05/08 14:57
08/05/08 14:57
Joined: Apr 2008
Posts: 437
dracula Offline OP
Senior Member
dracula  Offline OP
Senior Member

Joined: Apr 2008
Posts: 437
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.


Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1