How to add MFC support to an existing Win32 C ++ project?

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.

+5
source share
6 answers

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", , , .

+3

CString (, , ), . .

, CString

+1

MFC.

, , MFC, , lib. MFC (/ MFC CRT, / CRT, debug, release, X86, X64, MBCS, UNICODE ..) ,

CString:: LoadString - , MFC, CWinApp. - DLL. QT InitInstance ExitInstance.

+1

, MFC, . - - , , , - MFC . , - , MFC.

0

Windows ( , MFC), , WindowProc.

, Win32 CStatic, WindowProc CStatic. CStatic, MFC .

0

MFC Integra, :

  • :
    • qt , MFC WinMain/wWinMain.
  • MFC (mfc140d.dll/mfc140.dll ..).
    • System32 , .
    • DLL
0

All Articles