I was reading this particular code snippet:-
class WXDLLIMPEXP_CORE wxCommandEvent : public wxEvent, public wxEventBasicPayloadMixin
this is defined in event.h header file , i didn’t understand “WXDLLIMPEXP_CORE”.
Thanks
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.
If we have a look at where it is defined we see
The comments elsewhere in the file are pretty explanatory as to what is happening, but a brief summary is that there are three cases, we are making a DLL, using a DLL or not using one at all. The last case is the simplest, if we are not using DLLs at all then they are defined away to nothing. If we are making a DLL then it marks the class as exported, and if we are using a DLL then it marks the class as imported.