| 1. |
What Are Afx Extension Class And Extension Dlls? |
|
Answer» Regular DLLs allows us to use MFC in the exported functions, but they do not require that the calling application should also use MFC. Thus regular DLL can be EASILY used in programs developed in other Windows programming languages like Visual Basic or Delphi. A big restriction of regular DLL is that it cannot export C++ classes. This restriction has been lifted in an Extension DLL. In an Extension DLL we can export classes. This forces the client application to be MFC application. The client can construct OBJECT of the exported class or derive classes from it. An extension DLL should meet two requirements:
Example: Class AFX_EXT_CLASS CMyAboutBox: public CDialog Regular DLLs allows us to use MFC in the exported functions, but they do not require that the calling application should also use MFC. Thus regular DLL can be easily used in programs developed in other Windows programming languages like Visual Basic or Delphi. A big restriction of regular DLL is that it cannot export C++ classes. This restriction has been lifted in an Extension DLL. In an Extension DLL we can export classes. This forces the client application to be MFC application. The client can construct object of the exported class or derive classes from it. An extension DLL should meet two requirements: Example: Class AFX_EXT_CLASS CMyAboutBox: public CDialog |
|