??? ????????? C ? C++ ???????? ???? ???? ?????? ?????? ?? ??? ????? ???????? Visual C++

?????? ????????? ?????? ?????????
???? ???????: 154753 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

???? ??? ??????? ?????? ????????? .LIB [D] LIBC .LIB LIBCMT [D] ? .LIB LIBCI [D] ? LIBCIMT .LIB [D] ? .LIB LIBCP [D] ? LIBCPMT .LIB [D] ? .LIB MSVCRT [D] ? .LIB [D] MSVCIRT ? .LIB [D] MSVCPRT ???? ?????? ?????? ?? ??? ????? ???????? Visual C++.

??????? ????

??? ????? ????? ????? (?? ?????) ?? ??????? ?? Visual C++ ? ???? ?????? Runtime C ???????? (.LIB [D] LIBC ? .LIB [D] LIBCMT MSVCRT[D].LIB) ????? ???? ??????? ???????? ??? ?????? ?????? ??????? ???? ?????? (<ML[d]> ????? ???? ?? <MT[d]> ?????? ?????? ??????? ?? DLL ??? ?????? ????? <MD[d]>). ????? ?? "????? C++ ????????" ?? ??? ?? ????? iostream ??????? ?? ????? ???? ??? ???????? ??? ???? ??????? ?? ????????? ???????? ?????? ??. ??? ???? ??????? ??? ?????? ??????? ???????:

???? 1: ????? ???????? test1.cpp

// test1.cpp
void main()
{
}
				
  • ?? ???? ????? test1.cpp ???????? /ML (?? / MLd ? ?????? ??? ???? ?????) ?????? ?????? ??????? ??????? ???????? ???? ?????? LIBC.LIB (?? LIBCD.LIB ?????? ??? ???? ???????) ? ???????? ??? ?????? ????.
    ??????/ML ? / MLd ?? ????? ?????? ?????? ??????? ??????? ????? ??????? ????? ???? ????? ?? Visual C++ 2005 ??? ????????? ??????? ?? Visual C++.
  • ?? ???? ????? test1.cpp ???????? /MT (?? / MTd ? ?????? ??? ???? ?????) ?????? ?????? ??????? ??????? ???????? ???? ?????? LIBCMT.LIB (?? LIBCMTD.LIB ?????? ??? ???? ???????) ? ???????? ??? ?????? ????.
  • ?? ???? ????? test1.cpp ???????? /MD (?? / MDd ? ?????? ??? ???? ?????) ?????? ?????? ??????? ??????? ???????? ???? ?????? MSVCRT.LIB (?? MSVCRTD.LIB ?????? ??? ???? ???????) ? ???????? ??? ?????? ????. ?? ??? ??????? ???? ???????? ????? ??? MSVCRT.DLL (?? MSVCRTD.DLL ?????? ??? ???? debug).

???? 2: ????? ???????? test2.cpp

   // test2.cpp
   #include <iostream>
   void main()
   {
   }
				
  • ?? ???? ????? test2.cpp ???????? /ML (?? / MLd ? ?????? ??? ???? ?????) ?????? ??????? ??????? ??????? ???? ?????? ???????? LIBC.LIB (?? LIBCD.LIB ?????? ??? ???? ???????) ? LIBCP.LIB (?? LIBCPD.LIB ?????? ??? ???? ???????) ? ???????? ??? ?????? ????.
    ??????/ML ? / MLd ?? ????? ?????? ?????? ??????? ??????? ????? ??????? ????? ???? ????? ?? Visual C++ 2005 ??? ????????? ??????? ?? Visual C++.
  • ?? ???? ????? test2.cpp ???????? /MT (?? / MTd ? ?????? ??? ???? ?????) ?????? ??????? ??????? ??????? ???? ?????? ???????? LIBCMT.LIB (?? LIBCMTD.LIB ?????? ??? ???? ???????) ? LIBCPMT.LIB (?? LIBCPMTD.LIB ?????? ??? ???? ???????) ? ???????? ??? ?????? ????.
  • ?? ???? ????? ???????? test2.cpp /MD(or /MDd, for a debug build) ?????? ??????? ??????? ??????? ???? ?????? ???????? MSVCRT.LIB (?? MSVCRTD.LIB ?????? ??? ???? ???????) ? MSVCPRT.LIB (?? MSVCPRTD.LIB ?????? ??? ???? ???????) ? ???????? ??? ?????? ????.
    ?? Microsoft Visual C++ 2008? ???? ???????? ????? ??? MSVCR90.DLL MSVCP90.DLL (?? MSVCR90D.DLL ? MSVCP90D.DLL ?????? ??? ???? debug).
    ?? Microsoft Visual C++ 2005 ? ???? ???????? ????? ??? MSVCR80.DLL MSVCP80.DLL (?? MSVCR80D.DLL ? MSVCP80D.DLL ?????? ??? ???? debug).
    ?? Microsoft Visual C++ 2003? ???? ???????? ????? ??? MSVCR71.DLL MSVCP71.DLL (?? MSVCR71D.DLL ? MSVCP71D.DLL ?????? ??? ???? debug).
    ?? Microsoft Visual C++ 2002? ???? ???????? ????? ??? MSVCR70.DLL MSVCP70.DLL (?? MSVCR70D.DLL ? MSVCP70D.DLL ?????? ??? ???? debug).
    ?? Microsoft Visual C++ 6.0 ???? ???????? ????? ??? MSVCRT.DLL MSVCP60.DLL (?? MSVCRTD.DLL ? MSVCP60D.DLL ?????? ??? ???? debug).
    ???? ????? MSVCRT.DLL MSVCP50.DLL (?? MSVCRTD.DLL ? MSVCP50D.DLL ?????? ??? ???? ???????) ???????? ????? ?? ?? Microsoft Visual C++ 5.0.
    ?? Microsoft Visual C++ 4.2 ? ???????? ???? ????? MSVCRT.DLL (?? MSVCRTD.DLL ?????? ??? ???? ???????) ? MSVCPRT.LIB (?? MSVCPRTD.LIB ?????? ??? ???? debug).

???? 3: ????? ???????? test3.cpp

????????????? ??? ????? ???? ??? ???? .h (????? <useoldio.h>) ?? ?? ????? ?? Visual C++ 2002 ?? ?? ????? ?? Visual C++ 2005 Visual C++ 2003. ????? ?? ???? ????? ?????? ?? ????? ?? Visual C++ ?????? Visual C++ 2002.
// test3.cpp
#include <iostream.h>
void main()
{
}
				
  • ?? ???? ????? test3.cpp ???????? /ML (?? / MLd ? ?????? ??? ???? ?????) ?????? ??????? ??????? ??????? ???? ?????? ???????? LIBC.LIB (?? LIBCD.LIB ?????? ??? ???? ???????) ? LIBCI.LIB (?? LIBCID.LIB ?????? ??? ???? ???????) ? ???????? ??? ?????? ????.
    ??????/ML ? / MLd ?? ????? ?????? ?????? ??????? ??????? ????? ??????? ????? ???? ????? ?? Visual C++ 2005 ??? ????????? ??????? ?? Visual C++.
  • ?? ???? ????? test3.cpp ???????? /MT (?? / MTd ? ?????? ??? ???? ?????) ?????? ??????? ??????? ??????? ???? ?????? ???????? LIBCMT.LIB (?? LIBCMTD.LIB ?????? ??? ???? ???????) ? LIBCIMT.LIB (?? LIBCIMTD.LIB ?????? ??? ???? ???????) ? ???????? ??? ?????? ????.
  • ?? ???? ????? test3.cpp ???????? /MD (?? / MDd ? ?????? ??? ???? ?????) ?????? ??????? ??????? ??????? ???? ?????? ???????? MSVCRT.LIB (?? MSVCRTD.LIB ?????? ??? ???? ???????) ? MSVCIRT.LIB (?? MSVCIRTD.LIB ?????? ??? ???? ???????) ???????? ??? ?????? ????. ?? ??? ??????? ???? ???????? ????? ??? MSVCRT.DLL (?? MSVCRTD.DLL ?????? ??? ???? ???????) ? MSVCIRT.DLL (?? MSVCIRTD.DLL ?????? ??? ???? debug).
???? ????? ?? ??? ??? ???? ??? ?????? C++ ???????? ?? ?????? iostream ??????? ?? ?? ??? ??? ???. ???? ???????? ?????? ??????? ??????? (/ML [d] ? /MT [d]/MD [d]) ?? ?? ????? ?????? ????? ????, ?????? ?????? ??????? ?? DLL ??? ?????? ????? ?????? ?? ????? ???? ???????.

???????? ???? ?? ???? ???? ???? .h ???? C++ ???????? ???? ?? ???? ????? .h ???? Runtime C ?? ???? iostream ??????. ??? ??? ??????. ??? ?? ???? ????? ??????? <useoldio.h> ? <use_ansi.h> ????? ?????? ???? ?????? ??????? ????? ?? ??.

?? ?????? ???? ??? ????? ? <useoldio.h> ? <use_ansi.h> ? ???? ????? ??? #pragmas. ??? #pragmas ????? iostream ??????? ?? ????? C++ ???????? ????? ?? ???? ???????.

????? ??? ????? <useoldio.h> ??? ?????? & # pragma ??? ?????? ?? ????? iostream ??????. ????? ???? ?????? iostream ?????? <useoldio.h>. ???? ??? ??? ?????? ?? ??? iostream ?????? ?? ??????? ????? ?? ???? ??? ????? iostream ??????? ???? ???????. ???? ?????? ?????? ???? ??????? ??? ???? ????? <useoldio.h>.

???? iostream ??????

?? ??? ??????????? ??? ??????
fstream.hiomanip.h
ios.hiostream.h
istream.hostream.h
stdiostr.hstreamb.h
strstrea.h
????????? ????? <useoldio.h> ??? Visual C++ .NET 2003 ?????????? ???????. ???? ????? ????? iostream ??????? ?? Visual C++ 2003 ?????????? ??????, ?? ????? ??? <useoldio.h>.
????? ??? ????? <use_ansi.h> ??? ?????? & # pragma ??? "????? C++ ????????" ????? ??. ???? "?????? C++ ????????" ????? <use_ansi.h>. ??? ??? ??? ?????? ?? ??? C++ ???????? ?? ??????? ????? ?? ???? ??? ????? C++ ???????? ???? ???????. ???? ?????? ?????? ???? ??????? ??? ???? ????? <use_ansi.h>.

???? C++ ????????

?? ??? ??????????? ??? ??????
????????bitset????deque
fstream????????iomanipios
iosfwdiostreamistream???????
?????????????????? ???????????
??????????????ostream????? ??????
?????sstream???? ??????? ???????stdexcept
streambuf?????strstreamtypeinfo
?????? ????????valarray?? ????xiosbase
xlocalexlocinfoxlocmonxlocnum
xloctimexmemoryxstringxtree
xutilityymath.h
?? ???? ??? ????????? ??? ????? iostream ??????? "?" ????? C++ ???????? ????? ?? 4.2 Visual C++.
?? ??? ??????????? ??? ??????
????? ???????????? ???????? ??
/ML (VC ++ .NET 2003 ?????????? ???????)LIBC.LIB libcp.lib
/ MLd (VC ++ .NET 2003 ?????????? ???????)LIBCD.LIB libcpd.lib
/mtLIBCMT.LIB libcpmt.lib
/ MTdLIBCMTD.LIB libcpmtd.lib
/mdMSVCRT.LIB msvcprt.lib
/ MDdMSVCRTD.LIB msvcprtd.lib

???? ???? ?? DLL CRT ?????????

?? ??? ??????????? ??? ??????
??????? ????? ???????? ????????? DLLs (5.0|6.0 Visual C++)??????? DLLs (Visual C++ .NET 2002|Visual C++ .NET 2003)DLLs ????????? (C++ 2005|Visual Visual C++ 2008
msvcrt.lib msvcrt.dll MSVCR7 (0|1) .DLL MSVCR (80|90) .DLL
msvcrtd.lib msvcrtd.dll MSVCR7 (0|1) D.DLL MSVCR (80|90) D.DLL
msvcprt.lib 0.DLL MSVCP (5|6) MSVCP7 (0|1) .DLL MSVCP (80|90) .DLL
msvcprtd.lib 0D.DLL MSVCP (5|6) MSVCP7 (0|1) D.DLL MSVCP (80|90) D.DLL
msvcirt.lib msvcirt.dll
msvcirtd.lib msvcirtd.dll

?????

C ?????? ??? ???????
http://msdn.microsoft.com/en-us/library/abx4dbyh.aspx?????? ??? ??????? ??????? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
154419??????? ????????? ?? ????? C++ ????????

???????

???? ???????: 154753 - ????? ??? ??????: 11/???? ?????/1429 - ??????: 7.1
????? ???
  • Microsoft Visual C++ 2008 Express Edition
  • Microsoft Visual C++ 2005 Express Edition
  • Microsoft Visual C++ .NET 2003 Standard Edition
  • Microsoft Visual C++ .NET 2002 Standard Edition
  • Microsoft Visual C++ 5.0 Professional Edition
  • Microsoft Visual C++ 5.0 Enterprise Edition
  • Microsoft Visual C++ 4.2 Professional Edition
  • Microsoft Visual C++ 4.2 Enterprise Edition
????? ??????: 
kbmt kbarttypeinf kbcompiler kbinfo kblangcpp KB154753 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????154753

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

 

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