Tag Archives: VS2017

After the installation of vs2017, we can’t find the source files such as windows. H, stdio. H, etc

1. Problem description:
After the Visual Studio 2017 installation is complete, the source code prompts:
“Could not find source Windows.h”
“Could not find source file stdio.h”
“Could not find source file tchar.h”
The error code is as follows:

2. Causes of the problem:
The Windows 10 SDK for Desktop C++ [x86 and x64] (10.0.16299.0) module was omitted during the installation of VS2017.

3. Problem solving:
(1) Open VisualStudio Installer and click Modify in VisualStudio Installer.
(2) Select a single component;
(3) Check “Windows 10SDK (10.0.16299.0) for Desktop C++ [x86 and x64]” module, check this module will automatically add “Windows 10SDK (10.0.16299.0) for UWP(C ++)” and “Windows 10SDK (10.0.16299.0) for UWP(C#, VB, JS)” module;
(4) Finally click the Modify button to add these modules. Problem solved.

4. The operation process is as follows:






[pit filling] problem summary of upgrading VS2010 project to vs2017

Question:
1, VS2010 MFC project upgrade to VS2017, open the resource file (open the RC file or open the resource view), resulting in VS software stuck.
2. Upgrade the VS2010 MFC project to VS2017, open the class wizard, resulting in VS software stuck.
Solution:
1. Backup platform toolset (properties ->; Conventional – & gt; Platform toolset) to Visual Studio 2010(V100)
2, reset the solution goal, select the latest SDK version and the latest toolset

PS:
1, can be deleted. Vs file folder (configuration) new beginning.
2, you can delete suo file, this is the old version of the configuration file
Other questions:
1 turn, Vs2010 project Vs2017 problem summary

2, explore https://blog.csdn.net/myruo/article/details/79277817 Visual Studio generated. Vs folders internal structure and function of the
https://shiyousan.com/post/636441130259624698
3, in the Visual Studio. Suo (Solution The User Options) file
https://shiyousan.com/post/636445373691512313

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.

Solution: vs2017 cannot open header files such as stdio. H main. H

Problem description:
Error running solution in VS2017: “E1696 cannot open source file” stdio.h “
“…

The reason:
This usually occurs when the code for the project is downloaded from the Internet, or when the computer is reinstalled on a new system, etc., resulting in a computer system that is different from the Windows SDK that the project was built with, and many of the source files are not found in the default location (which has changed).
Solution:
1. At the C++ project (example is “Fibonacci”), right-click the mouse to select “Properties” from the pop-up menu.


2>fter clicking “Properties”, the following dialog box will pop up, locate and click “General”, and select the Windows SDK version of this computer from the drop-down option of “Windows SDK version” (the default in the example project is 8.1, but 10.0.17134.0 (my computer is Win10)).

Win10 vs 2017 prompt cannot open include file: “windows. H”: no such file or director

First see if there is a Windows SDK installed, if not, please open the Visual Stdio Installer, then select modify, tick the latest version of the Windows SDK

As shown in the red box. Then right click on the project properties and configure properties -& GT; Routine. The Windows SDK version selects the version you just installed

Test to see if it can be included, if not. VC++ directory on the above property page -> Open in the include directory, see if the UM folder is in it, and if not, add it to the include directory. Windows.h Files are in this directory C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\windows.h