Kinect V2 Speech Basics D2D Visual Studio Patch C++

By Sagar Gandhi on

If you are working on Kinect for Windows V2 and want to play with Speech Basics C++ Sample, and you are using Visual Studio Express Edition, this post is for you.

Recently when working with kinect, I came accross interesting issue. I was using Visual Studio Express Edition, I installed Speech-Basics-D2D C++ sample, build and boom.. build failed with an error:

sphelper.h(46): fatal error C1083: Cannot open include file: 'atlbase.h': No such file or directory

After searching through, I found that atlbase.h is specific to ATL/MFC and in order to remove this dependency we need to intall non-express version of Visual Studio. There were worarounds - atlbase.h used to come with Windows Driver Kit Version 7.1.0 or with platform SDK. But apparantly, it is ommited from current versions of both.
So we need to install Professional edition of Visual Studio (which may not be very economic) or copy some files from other computers, in which case there is no gaurantee that things will work out smoothly. So I present a cleaner workaround.

Read more