Hi!
I’ve tried to do the steps described below to the LanguageSwitcher project.
Make the following changes below in the profuislib project:
1. Open the Prof-UIS workspace and make the profuislib project active;
2. Open the Prof-UIS.h file and comment the following lines:
// #if (!defined _AFXDLL || defined __STATPROFUIS_WITH_DLLMFC__)
// #define __EXT_MFC_NO_CUSTOMIZE
// #endif // (defined _AFXDLL || !defined __STATPROFUIS_WITH_DLLMFC__)
3. Add the following files to the project:
./Include/ExtCustomize.h
./Include/ExtIconEditDlg.h
./Src/ExtCustomize.cpp
./Src/ExtIconEditDlg.cpp
4. Select the required configuration and build the project.
Make some changes in your application:
1. Copy the ./profuisdll/profuisdll.rc file to the project’s directory.
2. Open profuisdll.rc in the text editor, find the VS_VERSION_INFO section and remove this entire section.
3. Copy the ./profuisdll/idd_ext_color_dlg.ico file to your project’s directory.
4. Copy the contents of the ./profuisdll/res directory to your ./res directory.
5. Add the #include "profuisdll.rc"
line just after the comment "Add additional manually edited resources here..." in your application’s ./res/*.rc2 file. If you do not do this, the Prof-UIS assert at startup because it is trying to access resources that are not available.
6. Copy all constant definitions from the ./profuisdll/resource.h file to your resource.hresources
I’ve also removed any resources that haven’t to do with English from profuisdll.rc as you recommended. And one more thing to add: in Prof-UIS.h there is one more #define by those lines, like this:
// #if (!defined _AFXDLL || defined __STATPROFUIS_WITH_DLLMFC__)
// #define __EXT_MFC_NO_CUSTOMIZE
// #define __EXT_MFC_NO_DYNAMIC_BAR_SITE
// #endif // (defined _AFXDLL || !defined __STATPROFUIS_WITH_DLLMFC__)
I compile the project with the same project-properties as I did with profuislib project, and it compiles without any warning. Still, when I try to run the application I get an unhandled exception. Checking the stack in debug I can see that the problem starts in CMainFrame::OnCreate() at CExtCustomizeSite::MenuInfoLoadAccelTable().
Could you give me any explanation for that?
Thank you: Chris