Consolidating multiple C++ projects into a single executable
Posted: 02 May 2024, 19:40
Hello,
I am managing multiple standalone C++ projects, each with its own Application, ApplicationLauncher, and Window class. Currently, each project compiles into a separate executable with a MainWindow.xaml where the main element is <Window ...>.
I aim to consolidate these into a single executable by converting each MainWindow.xaml from a Window to a UserControl. These UserControls will be imported into a single MainWindow.xaml, supported by one Application, ApplicationLauncher, and Window class to manage UserControls visibility and screen changes.
I am seeking advice on two points:
How should I manage and load resource providers (e.g., TextureProvider, XamlProvider, FontProvider) in this new structure, considering each project has its own resources and there are shared
resources?
What are the recommended methods for organizing and loading both project-specific and shared resources efficiently in the unified UserControl framework?
Any guidance or resources you can provide on this process would be greatly appreciated,
Thank you.
I am managing multiple standalone C++ projects, each with its own Application, ApplicationLauncher, and Window class. Currently, each project compiles into a separate executable with a MainWindow.xaml where the main element is <Window ...>.
I aim to consolidate these into a single executable by converting each MainWindow.xaml from a Window to a UserControl. These UserControls will be imported into a single MainWindow.xaml, supported by one Application, ApplicationLauncher, and Window class to manage UserControls visibility and screen changes.
I am seeking advice on two points:
How should I manage and load resource providers (e.g., TextureProvider, XamlProvider, FontProvider) in this new structure, considering each project has its own resources and there are shared
resources?
What are the recommended methods for organizing and loading both project-specific and shared resources efficiently in the unified UserControl framework?
Any guidance or resources you can provide on this process would be greatly appreciated,
Thank you.