PDA

View Full Version : Multilibrary project



Peppy
26th October 2010, 20:51
I have a confusing question: How to build a multilibrary (modular) project? Can I build something similar like C# Windows Forms Application ? For example:


Project.exe
Project.Core.dll
Project.Services.dll
Project.Resources.dll
...

I don't think that plug-ins will be the best solution or yes? I have tried this:


// Project.exe
int main(...)
{
QApplication
// Load Core library and get main window instance
}

But this example won't work because it won't draw any window. I very thanks for all responses or solutions.

wysota
26th October 2010, 21:03
A general answer to a general question - yes, it is possible. And I think you already answered your own question - use multiple libraries. They don't have to be plugins, just regular libraries.

Peppy
26th October 2010, 21:05
Thanks. Where do you think, to use QApplication Class ? In Project.exe or in Project.Core.dll ??

wysota
26th October 2010, 21:19
It doesn't make any difference. You will link with the library in the main executable anyway.