Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Paul Cowan
|
Jan 8, 2007 - 1:24 PM
|
I’m trying to build a static lib with DLL MFC and no resources. I’m doing a "Static MBCS Debug with MFC DLL" build. If I remove the #define __EXT_PROFUIS_STATIC_LINK_WITH_RESOURCES line from Prof-UIS.h, I get a lot of compile errors including
error C2504: ’CExtHookSink’ : base class undefined
How do I build a static lib without resources?
|
|
Suhai Gyorgy
|
Jan 9, 2007 - 2:31 AM
|
Quote from this Prof-UIS FAQs: "As you know, static libraries typically do not contain any resources inside. That means, if you use Prof-UIS as a static library, you cannot use any resource-dependent features like customization, color selection and icon editor dialogs, localization, and etc." There they tell about how to include resources for statically linked library. I can think of only one way you could compile statically linked library without resources: Remove all features that require resources. Another FAQ tells you how to exclude some features: How to reduce the size of the Prof-UIS dll that I use in my project? Unfortunately I don’t know which features require resources and which do not. Maybe you can’t exclude all resources if you use any feature that requires them. But that FAQ helps you reduce the size as much as possible.
|
|