Monday, 25 November 2013

If you have problems with the CSTRING and/or the inclusion of  stdafx.h, AFX, ATL, etc etc
If you are using visual studio express 2003 / 2010 / 2013
If you cannot install the visual studio 2013 SDK vssdk_full.exe
try to install the 2003 SDK
http://www.microsoft.com/en-us/download/details.aspx?id=6510




Download all the cab files.
Run PSDK-FULL.exe and choose the same folder where are located the cab files.
Run the PSDK-FULL.bat by adding a folder (the same path or something like c:\setupsdk).
Run the setup that fits your needs:
- SetupA64.Exe (64bit - worked on windows 7 and 8 without problems)
- Setup64.Exe (itanium 64?)
- Setup.Exe (32bit)

the autorun gives more info
[autorun]
OPEN=setup.exe

[Platform_x86]
Package=setup\PSDK-x86.msi

[Platform_AMD64]
Package=setup\PSDK-amd64.msi

[Platform_IA64]
Package=setup\PSDK-ia64.msi
___________________________

Just run whatever fits your needs.

___________________________



after the installation add  the include folder 
(ex. C:\Program Files\Microsoft Platform SDK\Include)
to your project

Remember that afxwin.h is MFC and it's not included in the version of VC++ Express Edition (that is free).