???? ??? LNK2005 ??? ??? ????? CRT ??????? MFC ?? ??????? ??? ???? ?? Visual c + +

?????? ????????? ?????? ?????????
???? ???????: 148652 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

???????

??? ??? ????? ??? ??????? C (CRT) ??????? Microsoft Foundation ??? (MFC) ?? ??????? ??? ????? ?? ????? ???? LNK2005 ??????? ???????:
nafxcwd.lib(afxmem.obj): ??? LNK2005:
"void * __cdecl ???? ???? (int ??? ???????)" (?2@YAPAXI@Z) ??????
??????? ?? LIBCMTD.lib(new.obj)
nafxcwd.lib(afxmem.obj): ??? LNK2005:
"????? __cdecl ???? delete(void *)" (?3@YAXPAX@Z) ????? ??????
?? LIBCMTD.lib(dbgnew.obj)
nafxcwd.lib(afxmem.obj): ??? LNK2005:
"void * __cdecl ???? ???? (int ??? ???????? int char const *? int)"
(??2@YAPAXIHPBDH@Z) ??????? ?????? ?? LIBCMTD.lib(dbgnew.obj)
mfcs40d.lib(dllmodul.obj): ??? LNK2005: ?? ??????? ?????? ?? _DllMain@12
???????.LIB (dllmain.obj)
mfcs42d.lib(dllmodul.obj): ??? LNK2005: ?? ??????? ?????? ?? _DllMain@12
msvcrtd.lib(dllmain.obj)

?????

??????? ?????? CRT ??? ???????? ??????? ?????? ???? ?????? DllMain . ???? ????? ??? ?????? MFC ?????????????? DllMain . ????? ??? ??????? ?????? MFC ??? ??? ?? ??? ??? ????? CRT.

????

???? ??????? ??? ??? ???????. ???? ????? ????? ??? ??? ?????? ???? ???????? ???????? ??????. ???? ?????? ???? ?? ?????? ??? ?????? ??????? ???? ???? ??????? ????????.

?????? ????? ??????? ??????? ?? Visual c + + 6.0.

?? ????: ???? ??? ?????? ???????? ?? ??????? ?????? ???

  1. ?? ??????? ' ?????'? ???? ??? ???????.
  2. ?? ????????? ??? ???? ????????????? ??????? ? ???? ?????? ?????????????????? ?? ?????? ??? ????? ????????.
  3. ?? ????? ??????? " ?????? "? ???? ??? ?????? ????????? ???? ??????? ?????? ????? .
  4. ?? ???? ??????????????? ? ????? ????? ????? (???????????? Nafxcwd.lib?Libcmtd.lib).

    ?????? ??????? ??? ??????? ?????? ??/NOD:<library name=""></library>.
  5. ?? ?????? ??????? ???????/????? ?????? ? ????? ????? ?????. ??? ?? ????? ?? ?? ??? ?????? ?? ?????? ????? ???????? ????? ????? ?? ????? (??? ???? ??????? Nafxcwd.libLibcmtd.lib).
?????? ??? ?????? ?? Visual c + +.NET? ????? ????? ????????? ??? ???????? "????? Visual c + + ??????? ?????".

???? ??????: ????? ?????? ??????? ?????? ???????

???? ????? ?????? ??????? ???????? ???? ??????? ???????:
  1. ?? ??????? ' ?????'? ???? ??? ???????.
  2. ?? "????????" ??? ???? ????????????? ??????? ? ???? ??? ?????? ?????????????????? ?? ?????? ??? ????? ????????.
  3. ?? ????? ??????? " ?????? "? ????/??????: lib ?? ???? ?????? ?????? ???????.
  4. ??? ????? ???????. ???? ??? ???????? ?? ???? ??????? ????? ????? ????????.

?????

????? ??? ?????? ??? ???????.

??????? ????

??? ??????? ?????? MFC? ??? ?????? ?? ??? ??? ?? ??? ??? ????? CRT. ????? ?????? ???? ?? ???? ?????? ?? ?? ?? ??? ?? ??????? ????? ?? ????? Msdev\Mfc\Include\Afx.h ?????? ??? ?????? (#include <Afx.h>) ?? ??? ????? (#include <Stdafx.h>). Afx.h ????? ??? ?????? ??????? ?????? ????????? ???????? ??????? #pragma (lib? "<libname>") ???????.<b00> </b00> </libname> </Stdafx.h> </Afx.h>

??? ??? ????? ?????? ????? ??? ????.c ?? ????? ?????.cpp ??? ?? ?????? MFC? ????? ????? ?????? ??? ??? ????? (Forcelib.h) ?? ????? ?????? ?? ?????? ???????. ??? ?????? ?????? ???? ?? ??? ????? ????? ?????????.

Visual c + + ?? ????? ??? ????? ???. ?????? ??? ?????? ???? ??????? ???????:
  1. ???? Msdev\Mfc\Include\Afx.h.
  2. ??? ???? ??? #endif ? #ifndef _AFX_NOFORCE_LIBS//! _AFX_NOFORCE_LIBS.
  3. ??? ??????? ??? ????? Windows.
  4. ?? ?????? ??? ??? ????.
  5. ??? ??????? ??????? ?? ??? ????? ??????.
  6. ??? ????? ???? Msdev\Mfc\Include\Forcelib.h.

????? ????? ????? ??????? ?? Visual c + +.NET

  1. ??? ????? Microsoft Visual Studio.NET.
  2. ?? ??????? ??? ? ??? ???????? ??? ?? ???? ??? ???????.
  3. ???? ??? ?????? Visual c + + ???????? ????????? ??? ?? ???? ??? ????? MFC??? ?????.
  4. ?? ???? ???? ????? ? ????Q148652.
  5. ?? ???? ???? ?????? ? ????C:\Test? ?? ???? ??? ?????.
  6. ?? ???? ?????? ????? ????? MFC ? ???? ??? ??? ???????.
  7. ???? ??? ??????? ??? ?????? ?????? ?????????? ?? ???? ??? ??????? MFC ?? ????????????? ??? ??????? MFC.
  8. ???? ??? ?????.
  9. ?? "?????? ??????"? ??? ??? ????? ?????????.cpp ???????.
  10. ?? ?????? ?????? ??? ??????? ??????? ???????? ??? ?? ???? ????????.
  11. ?? ?????? ?????? ??? ??????? ?????????? ?????????? ???? ??? "????? ???? ????".
  12. ???? ??? ????? c + + ????????. ?? ???? ???? ????? ? ????Aa. ???? ??? ???.
  13. ?? ???? ???????? ???????? ??????? ?? ??? Aa.cpp:
    int test(){new int; return 1;}
  14. ?? ?????? ?????? ??? ??????? ?????????? ?????????? ???? ??? ????? ???? ?????.
  15. ??? ??????? ???????:
    • Q148652.cpp
    • Q148652Dlg.cpp
    • stdafx.cpp
  16. ???? ??? ???.
  17. ???? ??????? ???? ??? ???????? ?? ?????? 15 ???????? ??????.
  18. ??? ???? ?????.cpp ????? ??? SourceFiles.
  19. ???? ????? ?????? ????? ?????.cpp ???? ??? ??????? ? ????????????.
  20. ?? ?????? ????? ???????????????? C/c + +.
  21. ???? ??? ???? ???????? ??????? ??????.
  22. ????? ??????? ?????/??????? ?? ??? ??????? ??????? ??? ?????? ??? ??????? ????? ????? ???????? ???????. ???? ????????.
  23. ?? ???? ???????? ???? ??? ?????????????.

???????

???? ???????: 148652 - ????? ??? ??????: 02/????? ???????/1435 - ??????: 9.0
????? ???
  • Microsoft Visual C++ 2008 Express Edition
  • Microsoft Visual C++ 5.0 Enterprise Edition
  • Microsoft Visual C++ 5.0 Professional Edition
  • Microsoft Visual C++ .NET 2002 Standard Edition
  • Microsoft Visual C++ .NET 2003 Standard Edition
????? ??????: 
kbsweptvs2008 kbtshoot kbarttypeinf kberrmsg kbprb kbmt KB148652 KbMtar
????? ????
???: ??? ????? ??? ??????? ???????? ????? ?????????? ??????? ?????? ??? ??????? ?? ??? ??????? ?? ??????? ??? ??? ?? ???? ????????? ???? ??????? ???????(CTF) ?? ?? ???? ????? ????. ???? ?? ???? ?????????? ??? ???????? ???????? ???? ??? ?? ???????? ??????? ?? ??? ??????? ???????? ?? ??? ??????? ??????? ??? ?????? ?? ?????? ??? ???? ???????? ???????? ?? ????? ??????? ????? ????? ??????. ??? ?? ???????? ???????? ?? ????? ??? ????? ?? ???????? ?? ???? ????? ?? ?????. ?????? ??? ???? ?????????? ???? ?????? ?? ??? ????? ?? ??? ??? ?? ??????? ?? ??? ????? ?? ???? ????? ????? ?? ????? ??????? ???? ?? ???????? ?? ??? ???????.
???? ??? ????? ??????? ?????? ??????????148652

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com