I am creating a C ++ application that uses Qt to create a GUI. However, I need to use a third-party library that relies on MFC (for CString, etc.). Is there a way to add MFC to my application to allow me to use this library or do I need to rewrite it myself?
I saw this question , but it does not tell me how to add MFC manually to the project.
If the library application accepts / returns / uses CStrings, it will need to link to the MFC libraries or it already has statically linked MFC libraries.
Visual studio, " MFc static/shared lib", , , .
CString (, , ), . .
, CString
MFC.
, , MFC, , lib. MFC (/ MFC CRT, / CRT, debug, release, X86, X64, MBCS, UNICODE ..) ,
CString:: LoadString - , MFC, CWinApp. - DLL. QT InitInstance ExitInstance.
, MFC, . - - , , , - MFC . , - , MFC.
Windows ( , MFC), , WindowProc.
, Win32 CStatic, WindowProc CStatic. CStatic, MFC .
MFC Integra, :