VC Usage Record

Source: Internet
Author: User

There was a problem today when the MFC project under the Windows platform was categorized to facilitate porting. Some things to record:

1. All files in the project opened according to the. dsw file are re-imported

2. Because the resource view is missing and the resource file folder is not visible under File view. When the compilation succeeds, the execution will cause the original MFC interface execution program to exit directly, and the direct double-click cannot run. In this case, create a new folder directly under File View resource file and then add the corresponding. rc,. rec2,resource.h,. ico files in the Res folder in the original project. It's OK to restart the project again. To re-recall the resource view. Otherwise, right-click to find the Resource view is also unable to be transferred out.

3. In addition, if it is a subdirectory of the current directory:. \ bin ...

4. If the path to set in the file is usually the current file location set to the current path, then all paths are relative to that relative path.

5. About error: When you double-click the. rc file, the. rc source code appears, while in ResourceView, double-clicking resources pops up "This file is already
The open in an editor. The workaround is to double-click on the close all following the Window menu bar.

6. The header file for the resource file contains a fixed containing directory, the resource option in the project properties settings, and below is a directory containing

7. For the use of the extern keyword, for variables, defined in the definition file, declared in the reference file, the declaration is pre-added extern

8.

About VC use _beginthread, Prompt _beginthread ': undeclared identifier

Http://blog.sina.com.cn/s/blog_63e908970100uwve.html

9. When a DLL is called, it is sometimes necessary to trace it directly into the DLL source code in the calling program. In this case, you need to configure the DLL's build path to the executing directory of the calling program, and the LIB is configured to the calling program's Lib directory. In a static call, you need to configure the Lib library path and add the Lib file to the appropriate directory. In a dynamic invocation, a LoadLibrary statement is required in the program to load the dynamic library.

VC Usage Record

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.