Dialog in Static Library
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a dialog box consisting of 8 progress bars which is used by multiple projects. I define it in a project which creates a static library file called EMD_Common.lib which is on my library path. The files that define the class are "Progress.cpp" and "Progress.h". In my projects that use it, I #include "Progress.h", declare a global variable CProgress *dlg, and create (try to create) the dialog with the following:
CAcModuleResourceOverride resOverride;
dlg = new CProgress(acedGetAcadFrame());
dlg->Create(IDD_DIALOG_PROGRESS);
The ARX modules compile fine (no errors or warnings), but when I get to the code above when running the routines, I get an error about an unsupported operation. The IDD_DIALOG_PROGRESS is defined in the resource.h file in the library project.
Any suggestions would be appreciated.
Thanks,
Ed