How to get stdafx.h

Jeff Mitchell kde-dev at emailgoeshere.com
Sat Apr 5 01:03:34 CEST 2008


Jeff Mitchell wrote:
> I had some code in a MSVC project that required the following includes:
> 
> #include "stdafx.h"
> #ifdef _DEBUG
> # pragma comment(lib, "comsuppwd.lib")
> #else
> # pragma comment(lib, "comsuppw.lib")
> #endif
> # pragma comment(lib, "wbemuuid.lib")
> #define _WIN32_DCOM
> #include <iostream>
> #include <comdef.h>
> #include <Wbemidl.h>
> # pragma comment(lib, "wbemuuid.lib")
> 
> However, when I take those includes and put it into my kdelibs code and 
> run cmake on it, it complains that it can't find stdafx.h.
> 
> If I remove that line, it complains about not finding precompiled headers.
> 
> How to fix this?

Never mind...for now at least.

Not sure what I changed, but it's no longer complaining when I don't 
include stdafx.h.

--Jeff


More information about the Kde-windows mailing list