What does it mean when a class is declared like this:
class CP_EXPORT CP_Window : public CP_Window_Imp
What does the CP_EXPORT portion mean/imply?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
CP_EXPORTis most probably a macro to conditionally export or import the class from a dynamic library.For example, when using Visual C++, a macro is used to conditionally select between using
dllexportanddllimport. This allows the same header to be used for both the project building the DLL itself and any projects that link against or load the DLL.