Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » "init" files in packages...
"init" files in packages... [message #12277] Tue, 23 October 2007 11:44 Go to next message
mirek is currently offline  mirek
Messages: 11712
Registered: November 2005
Ultimate Member
In an attempt to make non-ide use of U++ more possible, I have added a simple code to package saveing that also generates small "init" to the package directory, which includes all .icpp files.

The idea is to allow initialization of non-ide built applications using #include in main.cpp:

#include <CtrlLib/init>
#include <CtrlCore/init>
....

Mirek
Re: "init" files in packages... [message #12279 is a reply to message #12277] Tue, 23 October 2007 14:00 Go to previous message
mirek is currently offline  mirek
Messages: 11712
Registered: November 2005
Ultimate Member
luzr wrote on Tue, 23 October 2007 05:44

In an attempt to make non-ide use of U++ more possible, I have added a simple code to package saveing that also generates small "init" to the package directory, which includes all .icpp files.

The idea is to allow initialization of non-ide built applications using #include in main.cpp:

#include <CtrlLib/init>
#include <CtrlCore/init>
....

Mirek


Follow up: After more thinking, it is really simple to add dependend .icpp this way, e.g.

CtrlLib/init:

#ifndef _CtrlLib_icpp_init_stub
#define _CtrlLib_icpp_init_stub
#include "CtrlCore/init"
#include "RichText/init"
#include "PdfDraw/init"
#include "CtrlLib.icpp"
#endif


-> the only responsibility for using CtrlLib is in this case #include <CtrlLib/init> in the .cpp which contains main/WinMain.

(Implemented in TheIDE).

Mirek

[Updated on: Tue, 23 October 2007 14:02]

Report message to a moderator

Previous Topic: Layout Font property height now zoomed.
Next Topic: Hopefully fixed "Writes to freed blocks" bug in ide - and warning (quiz)
Goto Forum:
  


Current Time: Sat Feb 23 07:29:28 CET 2019

Total time taken to generate the page: 0.01076 seconds