Compiling in delphi??

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Raven2012
Posts: 1
Joined: Sat Apr 17, 2004 1:30 pm
Location: Poland
Contact:

Compiling in delphi??

Post by Raven2012 »

I try to compile a simple program in delphi (normal + {$include irrlicht.h})
When delphi try to compile irrlicht.h he always put a error.

1.'{ - }' and '/* - */' comments don't work (I've changed to '//', now it works ok)
2.I must change all '#something' to '{#something}' (Done too, all is ok(for the moment :)).

3.Delphi doesn't compile the NAMESPACE part :/
Don't know how to change it...
"[Error] irrlicht.h(158): Declaration expected but identifier 'namespace' found"
Questions:
1.Is it possible to use the Irrlicht Engine in Delphi??
2.If yes- are there any faq's, tut's or any other info's about?
3.If no- what must I do to compile (or to ommit compiling) irrlicht.h ??

I can eventually program in C++, but I prefer Delphi...

//Delphi=4, C++=Borland Builder 5, Irr=0.6, Sys=W2k,WMe,RedHat Linux
BTW Hi all :)

Sorry for my english.
:]Be Bad[:
schick
Posts: 230
Joined: Tue Oct 07, 2003 3:55 pm
Location: Germany
Contact:

Post by schick »

There is no way to change c++ code into delphi code that easy. All you can do is write a wrapper class. So you can call all the dll methods, but that will be lots of work. Do you a favour and use c++ with irrlicht.
Please send me an e-mail instead of a private message.
Post Reply