Introduction to various file types in Visual C ++

Source: Internet
Author: User

As a programming language, Visual C ++ is also an integrated development tool that provides automatic software code generation and Visual resource editing functions. In the process of developing applications using Visual C ++, the system generates a large number of various types of files for us, this section describes the roles of these different types of files in Visual C ++, on this basis, we have a comprehensive understanding of how Visual C ++ manages various files used by applications.

First, we need to introduce the file type with the dsw extension. This type of file is the highest level in VC and is called a Workspace file. In VC, an application exists as a Project, and the Project file uses. dsp extension, which can contain multiple projects in the Workspace file for unified coordination and management.

An important file type that works with a Workspace file of the dsw type is a file with the opt extension, this file contains the configuration information about the Local Computer Used in the Workspace file, so this file cannot be shared on different computers. When we open a Workspace file, if the system cannot find the required opt-type file, it will automatically create an opt file with local computer information.

As mentioned above, the Project file extension is dsp, which stores information about a specific Project, that is, specific applications, each project corresponds to a dsp-type file.

Files with clw extensions are used to store information about classes and resources used in applications. These information is the information source for managing and using classes by ClassWizard in VC.

Each application should have a readme.txt file, which lists the information of all the files used in the application. You can have a basic understanding of the file structure of the application by opening and viewing the content.

Files with h and cpp extensions are widely used in applications. Files with h extension are called header files. Files with cpp extension are called implementation files. Generally, files with h extension and files with cpp extension are used in one-to-one mode, objects with the extension h contain the definition of classes, while objects with the extension cpp mainly contain the implementation code of class member functions.

Some resources such as bitmaps and menus are often used in applications. files with the rc extension in VC are called resource files, which contain all the windows resources used in applications, it should be noted that rc files can be edited and modified in a visual manner directly in the VC integration environment.

Finally, we will introduce a file with the rc2 extension. It is also a resource file, but the resources in this file cannot be directly edited and modified in the integrated environment of VC, instead, we manually edit the file as needed.

For files with ico, bmp, and other extensions, there are many ways to generate such resources. The purpose of using rc resource files is to uniformly manage a large number of resources used in the program.

Related Article

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.