Summary of solutions to problems encountered in Windows Development

Source: Internet
Author: User
Tags mysql manual

1. This error is reported in Visual Studio: Project: Error prj0002: Error result 31 returned from 'C:/program files/Microsoft sdks/Windows/v6.0a/bin/mt.exe '.

Solution: Properties> Configuration Properties> linker> manifest file, set generate manifest to No.

 

2. When Visual Studio is compiled successfully, the following error occurs during running:

Msvcr90.dll is not found. Therefore, the application cannot be started and the problem may be fixed if you reinstall the application.

Solution: Project --> C ++ --> Runtime Library Project under Code Generation


Change from multi-threadeddebug DLL (/MDD) to multi-threaded debug (/MTD)

 

Because multi-threaded debug DLL (/MDD) requires the same msvcr. dll library as the project creator, and the DLL in our system may be different, the above error is reported. You can run the task after changing it to the following options.

 

 

3. MySQL syntax error.

For example, one of my tables is server_sysconf. The fields include ID, key, value, and desc. ID is an auto-increment field. All other fields are string fields.

Insert into server_sysconf (Key, value) values ("11", "11") Reports syntax errors. No errors have been found either in the SQL syntax book or in the MySQL manual.

After several attempts, we found that the following syntax is correct.

<! -- @ Page {margin: 2 cm} p {margin-bottom: 0.21} -->

Insert into server_sysconf (server_sysconf.key, server_sysconf.value) values ("11", "11 ")

MySQL requires that the field names be prefixed with the table name. Or the alias of the table name as the prefix. Similar to the writing of class attributes in object-oriented programming.

In addition, MySQL strings can be "" or. This is consistent with the syntax of JavaScript and python.

Write a number directly above, without quotation marks, and MySQL will not report an error.

 

 

Windows cannot recognize partitions of other operating systems. Note the following when formatting partitions:

 

Windows cannot recognize partitions of other operating systems. If you want to format partitions that cannot be recognized by windows, make sure that the partitions are not identified by windows. Because the default Disk Manager tool in Windows does not recognize the partition format, it cannot format the partition, but can only delete the partition and then format it. Therefore, if there is a partition that cannot be recognized by windows before the partition, the partition after the delete operation will merge the two partitions! This may not be the expected result. Data in the previous partition will be lost!

Windows. h

# Include "windows. H" is often required for Windows development ". This file defines many data types in windows. For example:

Typedef unsigned long DWORD;

Typedef int bool;

Typedef unsigned char byte;

Typedef unsigned short word;

Typedef float;

Typedef float * pfloat;

Typedef bool near * pbool;

Typedef bool far * lpbool;

Typedef byte near * pbyte;

Typedef byte far * lpbyte;

Typedef int near * pint;

Typedef int far * lpint;

Typedef word near * pword;

Typedef word far * lpword;

Typedef long far * lplong;

Typedef DWORD near * pdword;

Typedef DWORD far * lpdword;

Typedef void far * lpvoid;

Typedef const void far * lpcvoid;

 

Typedef int;

Typedef unsigned int uint;

Typedef unsigned int * puint;

And so on.

Eclipse workspace in use

In fact, no other eclipse instances use this space. View the. Metadata directory under the workspace and delete the. Lock file!

Because eclipse checks whether a. Lock file exists when opening a workspace. If yes, the above error is prompted. If not, create one by yourself. This file will be deleted when eclipse Exits normally. If eclipse is killed, the above problems will occur.

In short, eclipse uses the. Lock file to implement a single example of a workspace. It uses the file as a lock.

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.