????? C++ .NET ?? Visual C++ 2005 ?? ????? ???? ANSI C ????????? ?? ????? ?? ??? ???? ????

???? ?????? ???? ??????
???? ID: 829488 - ?? ???????? ?? ?????? ??? ?? ?? ???? ???? ???? ??.
??? ?? ??????? ???? | ??? ?? ??????? ????

??????

???:Microsoft Visual C++ .NET 2002 ?? Microsoft Visual C++ .NET 2003 Microsoft .NET Framework ?????? ??? ?? ??? ?? ???????? ???? ?? ????????? ??? Microsoft Windows ??? ???? ?? ??? ??????? ?? ???? ??? ?? ?? ??????? ???? ????????? ????? C++ ??? ?? ??? ???? ???? ???Microsoft Visual C++ 2005 Microsoft .NET Framework ?????? ??? ?? ??? ?? ???????? ???? ?? ????????? ??? Microsoft Windows ??? ???? ?? ?????? ???? ???

?? ??? ?? ??? ???? ????? ???? ?? ?? ???? ??????? ????????? ???? ?????? (ANSI) C ????????? ?? Microsoft Visual Studio .NET ?? ????? ?? ?????? ?? ???? ?? ???? ??????? "Hello ??????!" ????? ?? ??? ???? ????? ???? ?? C program by using Visual C++ application wizards in the Visual Studio .NET or Visual Studio 2005 IDE.

???? ???????

The best way to create new projects is by using the Visual C++ application wizards. Visual C++ application wizards work with the application frameworks and libraries to create starter programs for you.

To create ANSI C programs by using the Visual C++ application wizards in the Visual Studio .NET or Visual Studio 2005 IDE, follow these steps:
  1. Microsoft Visual Studio .NET ?? Microsoft Visual Studio 2005 ??????? ?????
  2. ????? ???????????? ??,????? ????-????? ????, ?? ???? ????????????.
  3. ?? ???????????????? ??????????? ????,????? C++ ?????????.

    ???:Visual Studio 2005, ??? ????? ????????? C++?? ???????????????? ??????.
  4. ?? ???????????????????? ????,Win32 Project.
  5. ??????????? ????? ???, ??????FirstApplication.
  6. ????????????? ????? ???, ??????C:\Test?? ????-????? ????, ?? ???? ???OK.

    TheWin32 Application Wizard - FirstApplication????? ?????,.
  7. ?????Win32 Application Wizard????? ????? ???, ????? ????????????? ????????????? ????..
  8. ?? ???????????????? ?? ??????, click to select any of the following options:
    • Console application: ??? ?????? ????? ????????? ????? ??? .Cpp ????? ?????? ??? ????? ????????? ??????? ????? ??????????????? ?? ??? ???? ???..
    • Windows ?????????: ???? ??????? Microsoft Windows-?????? ????????? ????? ??? ????????? ?????? ??? ????? ???ProjectName.cpp ????? ?????? ??_tWinMain?????? ?? ??? ???? ???.. ???????? ????? ???????? (GUI) ?????? ???????????? ???? ?? ??? ?? ?? ?????? ?? ????????? ?? ????? ?? ?????
    • DLL: 32-??? Windows-?????? DLL ????????? ????????? ????? ???
    • ??????? ?????????: 32-??? Windows-?????? DLL ????????? ????????? ????? ???
    ????? ?? ??? ??? ?????? "Hello ??????!" ?????????, ????? ?? ??? ???? ?? ???????? ?????????.
  9. ?? ??????????????? ??????, ?? ??? ???? ?? ??? ????? ????????? ???????????? ?????.

    ???:????? ?? ??? ??? ?????? "Hello ??????!" ?????????, ???? ?? ??? ????? ?? ??? ????? ???? ????, ?? ?? ??? ??? ????? ???? ???????? ???? ???
  10. ????? ????,??????.
  11. ?????? Explorer ???, ???? ?????????? ???????????, ?? ??? ?????add?? ????-????? ????, ?? ???? ????? ???? ??? ?????.
  12. ?????? ???? - FirstApplication ??????????? ????? ???, ????? ????C++ ????? (.cpp)?? ???????????????.
  13. ??????????? ????? ???, ??????Test.c?? ????-????? ????, ?? ???? ????????.
  14. ?????Test.c????? ?? ??? ?? ???, ????? ??? ???????:
    #include <stdio.h>
    
    int main()
    {
    	printf("Hello World\n");
    	return 0;
    }
    # ????? ????preprocessor directive ?? ??????? ??? stdio.h ????? ??? ???? ?? ???? ????????? ??? ???? ?? ??? ???? ??? ??? ?? ????? ??? ??????? ????? ???, ?? ?? ???? ????????? ?????? ??? ????? ??????? ?? ???? ???? ?????? ?? ???, ???? ????????? ???? ?????? ????? ?? ????? ???? ?? ??? stdio.h ????? ??? ???? ?? ???printf?????? ?? ??? ???? ???..
  15. ????? ????????????? ??,??????? ??????.
  16. ????????? ?? ????? ?? ??? CTRL + F5 ?????? ?? ????? ????????? ????? ??? ???? ????? ????? ??????? ???? ??:
    Hello ??????
    ???? ???? ?? ??? ??? ????? ?????

??????

C1010 ??????? ?????? ?? ???? ??? ???????? ??????? ?? ??? Microsoft ???????? ??? ???? ????? ?? ??? ????? ???? ?????? ?? ????? ????:
815644C1010 ?????? ?? ?????: ??????? ???????? ????

???? ??????? ?? ???, ????? Microsoft ?????? ??????? (MSDN) ??? ?????? ?? ????::
HTTP://msdn2.Microsoft.com/en-us/library/ms682589.aspx

(VS.80) http://msdn2.Microsoft.com/en-us/library/ms235627 .aspx

???

???? ID: 829488 - ????? ???????: 05 ?????? 2010 - ??????: 2.0
???? ???? ???? ??:
  • Microsoft Visual C++ 2005 Express Edition
  • Microsoft Visual C++ .NET 2003 Standard Edition
  • Microsoft Visual C++ .NET 2002 Standard Edition
??????: 
kbsample kbcode kbprogramming kbwizard kbhowto kbmt KB829488 KbMthi
???? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:829488

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

 

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