Build a Windows Development Environment

Source: Internet
Author: User
Tags microsoft website

Note: The following link may have expired when you see it. You can search for related words on the Microsoft website to find the corresponding resource.

I. C/C ++ Environment

If you want to use the features of windows, the standard C ++ compiler is not enough. You also need to use the platform SDK released by windows. Generally, Windows IDE environment includes a set of sdks, such as Microsoft platform SDK and August 6.0 edition in Visual Studio 2001. If you want to know how to use the SDK, you should know how to use msdn (the Microsoft Developer Network). By searching for msdn, you can find the API description and usage methods provided in the Windows SDK. If driver development is required, you also need Windows DDK (Microsoft Windows Driver Development Kit) and documentation (Microsoft Windows DDK documentation ).

Recommended learning and combination
Visual c ++ 8.0 Express (express does not support plug-ins, so you cannot use visual assistant. It supports the Standard C ++ syntax)
Http://www.microsoft.com/express/download/
Latest Windows Platform SDK
Http://msdn2.microsoft.com/zh-cn/express/aa700755 (En-US). aspx
Latest msdn
Http://www.microsoft.com/express/download/msdn/Default.aspx

See http://msdn2.microsoft.com/zh-cn/express/aa700755 (En-US). aspx for how to use SDK in Visual C ++ 8.0 Express:
1. Download and install visual c ++ 8.0 Express
2. download and install the Windows platform SDK
3. Open VC 8.0 Express, select menu options, open the Options dialog box, and select projects and Solutions
Add the following path to the corresponding place:

  • Executable files: C:/program files/Microsoft platform SDK for Windows Server 2003 R2/bin
  • Include files: C:/program files/Microsoft platform SDK for Windows Server 2003 R2/include
  • Library files: C:/program files/Microsoft platform SDK for Windows Server 2003 R2/lib

4. Update the corewin_express.vsprops file and find it under C:/program files/Microsoft Visual Studio 8/VC/vcprojectdefaults.
Additionaldependencies = "kernel32.lib"
Change
Additionaldependencies = "kernel32.lib user32.lib gdi32.lib winspool. Lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib UUID. lib"
5. Test Your Environment
In VC 8.0 Express, Win32 windows application cannot be used in Win32 Application Wizard, find the ettings.htm file in the % ProgramFiles %/Microsoft Visual Studio 8/VC/vcwizards/appwiz/generic/application/html/1033/directory, open the file, and remove the comments before lines 441-444, as shown below:
// Win_app.disabled = true;
// Win_app_label.disabled = true;
// Dll_app.disabled = true;
// Dll_app_label.disabled = true;
Save and close the program. Open vc8 and choose File> new from the menu. Select Win32> Win32 console application template. Press F5 to compile and run the program.

Ii. MASM
If you are familiar with assembly, using MASM (Microsoft Macro Assembler, Microsoft Macro assembly) is also a good choice. Compile the MASM program and have a deeper understanding of the program skeleton and Windows API.

The compiler, linker, resource editor, header file, and Lib library can be obtained from the following website for free.
Http://www.masm32.com/

If you do not know MSAM, first you need a book to explain MASM. "32-bit assembly language programming in Windows" is a good entry-level book, you should take a good look at this book before using MASM programming.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.