Home > Software engineering >  Based on VC6.0 MFC single document interface, appear the Debug after transplanted into VS2010 was im
Based on VC6.0 MFC single document interface, appear the Debug after transplanted into VS2010 was im

Time:10-05

Error information below!
File: f: \ dd \ vctools \ vc7libs \ ship \ atlmfc \ SRC \ MFC \ occcont CPP
The Line: 925
925 lines of code is as follows:
ASSERT (IsWindow (pTemp - & gt; M_hWnd));
After transplantation will appear a lot of small mistakes, changed, compile there is no problem, but the interface is not to!

CodePudding user response:

Probably some window or handle with VC6 for a different way

CodePudding user response:

Don't know about whether this:
VC6 default MBCS encoding and VC2008 and high version VC default Unicode,
Try:
Amend the character encoding in the project properties to MBCS,

In both Chinese and English versions of the VC2008 respectively under operating steps:

The method of operation is as follows: in the Chinese version VC2008 point menu "project - & gt; XXX properties... "(or right-click the project name, select" properties ", or press Alt + F7 can also open the project properties), point to the left of the "configuration properties", found in the Settings on the right side of the "character", change the default "using the Unicode character set" for "use multi-byte character set,"

The method of operation is as follows: in English VC2008 point menu "Project - & gt; XXX Properties... "(or right-click the project name, select Properties, or press Alt + F7 can also open the project Properties), point to the left of the" Configuration Properties ", found in the Settings on the right side of the "Character Set", change the default "Use the Unicode Character Set" for "Use Multi - Byte Character Set",

CodePudding user response:

reference
don't know about whether this:
VC6 default MBCS encoding and VC2008 and high version VC default Unicode,
Try:
Amend the character encoding in the project properties to MBCS,

In both Chinese and English versions of the VC2008 respectively under operating steps:

The method of operation is as follows: in the Chinese version VC2008 point menu "project - & gt; XXX properties... "(or right-click the project name, select" properties ", or press Alt + F7 can also open the project properties), point to the left of the "configuration properties", found in the Settings on the right side of the "character", change the default "using the Unicode character set" for "use multi-byte character set,"

The method of operation is as follows: in English VC2008 point menu "Project - & gt; XXX Properties... "(or right-click the project name, select Properties, or press Alt + F7 can also open the project Properties), point to the left of the" Configuration Properties ", found in the Settings on the right side of the "Character Set", change the default "Use the Unicode Character Set" for "Use Multi - Byte Character Set,"

Thank you so careful reply, I set is the
  • Related