Tag Archives: vs2010

_ASSERTE((unsigned)(c + 1) <= 256);

_ Asserte ((unsigned) (c + 1) & lt; = 256);

when using VS2010 to write a program, it is a very simple program, but when inputting Chinese characters, the following error prompt appears.

at the beginning, I was obsessed with the “cannot find or open the pdb file” of the error prompt, but later found that it was not the problem there. I started to notice the following problems.

click Retry, and a breakpoint message will appear.

next, click interrupt, and the breakpoint information will appear.

it can be seen from the figure that this is one of the problems in isctype. C file.

the solution is to right-click on the project – properties – configuration properties – C/C + + – command line

and then enter “/ J”

in the input box on the lower right side to re-enter Chinese characters. It is found that the error has been solved.

reference: msdn.microsoft.com

note: for other editors, such as VS2005, 2008 and 2012, you can choose from the top of the above website. As shown in the figure below

Compiling QT project under vs encountered “error 89error msb6006:“ cmd.exe ”Exited with code 3

Pro files have been compiled in Qt Creater, cross-platform Qt is compiled under VS2010, this part see how to cross-platform Qt compilation related knowledge, here do not repeat.
Error 89error MSB6006: “cmd.exe” has been exited, code is 3. According to the method of http://blog.csdn.net/mlj318/article/details/6778605 online to try, not solve the problem.
Right-click on the project properties and select Convert Projext to Qt Add in Project.

VS2010 compiler can’t open include file: “GL / glaux. H”: no such file or directory


#include <
#include < gl/gl.h>
#include < gl/glu.h>
#include < gl/glaux.h>
#include < gl/glut.h>

=
=
=
=
=
=
C :\ Users \ LJ \ Desktop \ Tracking Locate \ Camera \ Stdafx.h (43): fatal error C1083: Failed to open included file: “gl/glaux. H” : No such file or directory
C:\Program Files\Microsoft SDKS \Windows\ V7.0 A\Include\gl There are only two Files under C:\Program Files\Microsoft SDKS \Windows\v7.0A\Include\gl
So in VS2010, the corresponding header file cannot be found in the default lookup process
C:\Program Files\Microsoft SDKS \Windows\ V7.0 A\Lib
You’d better download these files from the Internet.
So the problem should be solved by copying the glaux-h and glaux-lib files (sometimes using glaux-dll), respectively, to the path referenced by default in VS2010 above.

Common compatibility problems of VS2010 to vs2017 projects

Error LNK2001: _vsnprintf VS2017
: Add legacy_stdio_definsition.lib to the VS2015 project option, linker attached dependency.
: The reason for this is that VS2015 builds inline many libraries by default, so there are no library files to link to.
We need to add library files specifically to link functions in the library.

2. The error LNK2019: cannot resolve the external symbol of __iob_func
the solution: CPP
/*
when libjpeg-turbo is compiled for vs2010: __iob_func cannot be found,
*> __iob_func to __acrt_iob_func to solve this problem,
* when>peg-turbo is compiled for vs2015,
* when libjpeg-turbo is compiled for vs2015:
*/
if _MSC_VER>; =1900
#include “stdio.h”
# ifdef __cplusplus
extern “C”
# endif
the FILE * __cdecl __iob_func (unsigned I) {
return __acrt_iob_func (I);
}
endif /* _MSC_VER>; =1900 */

. ERROR LNK2026 module is not safe for the SAFEEH image.
solution:
. Open the Property Pages dialog box for the project.
b. Click the Linker folder.
c. Click the Command Line property page.
d. Type /SAFESEH:NO into the Additional Options box and click Apply.