You have to be careful with the order of the #include and #define. Everything must be after the stdafx.h and SECURITY_WIN32 must be before Security.h. Try this...


#include "stdafx.h"
#define...