IncludeOnDemand - Framework 2 autoinclude only used Routines

Share your advanced PureBasic knowledge/code with the community.
PureLust
Enthusiast
Enthusiast
Posts: 477
Joined: Mon Apr 16, 2007 3:57 am
Location: Germany, NRW

IncludeOnDemand - Framework 2 autoinclude only used Routines

Post by PureLust »

I think, anyone of us has a lot of helpful routines somewhere on his Harddrive and includes them from time to time if he needs them.

But didn't you also have written an identical routine several times, because you didn't know that you already had this one somewhere in your Library?
Didn't you sometimes think that you should have a nifty Routine for the actual problem somewhere but you cannot remember the Name of the include-file?
Aren't you sometimes tired of searching your Harddrive for the right include-file you need right now?

NO ??? :shock: Ok ... then I'm the lonely wally. :P

I was always looking for the 'eierlegende Wollmilchsau' where I can easily have all my little nifty routines available in my code at any time (like an 'include all'), but without paying the price of blowing up the Executables because I included a lot of routines which I did not used at the end.

So ... this morning I waked up at 4am and had an Idea how to do it.
I didn't know if it could work, ... but ... I ended up with a little 'framework' (or whatever you want to call it), where you could put all your nifty routines in, put a little XIncludeFile-Command at the beginning and a XIncludeFile-Command at the end of your code and all your helpfull routines you had put into this 'IncludeOnDemand'-Framework will be available during the code-writing.
The once you've used in your code will be included 'by magic' and the once you did not use, will not be includet and do not blow up your executeables !!!

Maybe this 'framework' could be of some use for someone else ...

... and maybe ... someone will post one of his nifty routine in 'IncludeOnDemand' Format in the future, so other users can include it easily in their 'IncludeOnDemand'-Library.

I hope you will have fun with it and if you have any questions... just ask. :D

Greetz, PureLust.

You could download the 'FrameWork' [HERE]
[Dynamic-Dialogs] - create complex GUIs the easy way
[DeFlicker] - easily deflicker your resizeable Windows
[WinFX] - Window Effects (incl. 'click-through' Window)
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2139
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: IncludeOnDemand - Framework 2 autoinclude only used Rout

Post by Andre »

Looks like a clever routine, thanks :D

I'm still not sure, if I will come in need for this, because I separate my code collection from projects, and only include needed functions from it in my project includes... :mrgreen:
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
Post Reply