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 / Include files?

Author
Message
Roquqkie
21
Years of Service
User Offline
Joined: 23rd Mar 2003
Location:
Posted: 26th Mar 2003 12:54
Hi

I'm actually a C++ programmer, so I'm used to be able to add multiple files to my project, i.e InitFile, GameLoopFile, MenuFile etc.

My question is: how can I do this in DBPro?

Another question: Is it possible to use DBPro objects (not "the" object-class, but more general, i.e. sound, object, image, sprite etc.) in your own DLL's?
This would be REALLY cool, since C++ programmers as myself would be able to write entire games as several DLL's using OOP design!

Best regards
Roquqkie
Terabyte
21
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 26th Mar 2003 20:51
to your first question

open your project
make sure you are using project view mode

click add new in the files box

type the file name of the source file you wish to add into the dialogue box

click save in the dialogue

then save all in dark basic pro

to get to your main file, double click in the main source file box
to get to your added files, double click on the name of the file in the include files.

however....
inlude files are still not full proof
if you get a bug in your program it will point you to line numbers that do not exist.
make sure you click save all before you close dark basic pro otherwise you will loose your sorce files

hop this helps

I have a word of advice...
..don't piss on an electric fence!

Login to post a reply

Server time is: 2024-11-10 02:40:28
Your offset time is: 2024-11-10 02:40:28