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 » U++ Library support » U++ SQL » Schema files, layouts
Re: large exe size SOLVED [message #53393 is a reply to message #53389] Wed, 01 April 2020 09:06 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
I think the trick you are missing with U++ .sch files is that they have header part and code part. Header part, e.g.:

#define SCHEMADIALECT <PostgreSQL/PostgreSQLSchema.h>

#define MODEL <MyApp/MyApp.sch>
#include "Sql/sch_header.h"
#undef MODEL


you put into header and then use that header in many .cpp files. In one of .cpp though, you add "definition" part:

#define MODEL <NosCore/Nos.sch>
#include <Sql/sch_source.h>
#include <Sql/sch_schema.h>
#undef MODEL


As for layouts, you can have any number of layouts in layout file and any number of layout files in your project.

In my large apps, I can easily have 30 layouts in single .lay file and 5 such .lay files in single package, app is then like 5 packages. Yes, 500-1000 dialogs per productivity app is normal... Smile

You can also have multiple schema files, usually when dealing with more than single database. (But you need to be aware about name clashes and e.g. use namespaces).

Mirek

[Updated on: Wed, 01 April 2020 09:07]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MSSQL TCP ports
Next Topic: sql session in a global variable?
Goto Forum:
  


Current Time: Tue May 14 13:22:22 CEST 2024

Total time taken to generate the page: 0.03071 seconds