Conversion to 2015


  • We nave a simple VS C++ command line application which was originally built in VS 2010. When attempting to build it in VS 2015 it claims it converts the project then generates a long string of errors which appear to be caused by the lack of some defines. Specifically it is missing _TCHAR, HANDLE, NULL, LPTHREAD_START_ROUTINE, CloseHandle for starters. In stdafx.h is:

    #include "targetver.h"

    #include <stdio.h>
    #include <tchar.h>

    #include <windows.h>
    #include <sys\\stat.h>
    #include <time.h>

    so it seems to be installing all the correct files. it also generated this error:

    Severity Code Description Project File Line Suppression State
    Warning MSB8003 Could not find WindowsSDKDir variable from the registry.  TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. nemar C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets 366

    Does one have to manually put this in the registry? if so, where in the registry and what value goes there?

    Mark Hubelbank NorthEast Monitoring 2 Clock Tower Place #555 Maynard, MA 01754

    Tuesday, March 29, 2016 6:42 PM