Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / external libraries

Author
Message
betpet
21
Years of Service
User Offline
Joined: 16th Jan 2003
Location: United Kingdom
Posted: 16th Jun 2003 15:26
I'm working on a game engine and was wondering if there's a way to make it similar to C in that I can create the library of functions and keep them in a separate file and add some kind of a #include to any game code?

I've looked through the manual and forums and people mention libraries but never say if they just pasted the routines onto the end of the code or used some kind of link? It would make engine updates a lot easier for multiple game compilation. Any ideas?
adr
21
Years of Service
User Offline
Joined: 21st May 2003
Location: Job Centre
Posted: 16th Jun 2003 15:43
funnily enough, the directive you're looking for is called #include

#include "filename.dba"

ta-daaa!

betpet
21
Years of Service
User Offline
Joined: 16th Jan 2003
Location: United Kingdom
Posted: 16th Jun 2003 16:02
Doh! I can't believe that! Talk about a real newcomer...

Login to post a reply

Server time is: 2024-11-24 18:30:16
Your offset time is: 2024-11-24 18:30:16