Trouble compiling DSX9.0 Sample: CaptureSound

I've installed VC++ Express Beta2, the Platform SDK, and the DirectX9 SDK.

Here's the error I'm getting:

1>Generating Code...

1>Compiling resources...

1>.\capturesound.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'.

1>Build log was saved at "file://c:\Program Files\Microsoft DirectX 9.0 SDK (June 2005)\Samples\C++\DirectSound\CaptureSound\Debug\BuildLog.htm"

1>CaptureSound - 1 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Now that header file exists in two places on my machine, with different capitalizations:

C:\Program Files\MicrosoftPlatformSDK\Include\mfc\AFXRES.H

and

C:\Program Files\MicrosoftPlatformSDK\Samples\NetDS\ADSI\samples\General\DsBrowse\bitmaps\afsres.h

The files have different sizes, too. 33KB and 24 KB, respectively.
Can anyone help?

Thanks,

SaxMaam

[995 byte] By [SaxMaam] at [2007-12-16]
# 1
afxres.h is an include file from MFC which is not available in the VC++ Express product - I'm not sure whether or not I like this desicion =] Anyway, you either need the full VS.NET 2005 or download the current Platform SDK (WS 2003 SDK IIRC), which does include ATL and MFC. The Platform SDK will stop to distribute ATL and MFC when VS.NET 2005 is released thogh...

hth,
-- b.gr

BjoernGraf at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ General...
# 2
I have latest SDK(C:\Program Files\Microsoft Platform SDK) and there is afxres.h(AFXRES.h) in mfc include dir, and it ain't compiling. What a waste of time....Thanks msft

SomeName at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ General...
# 3

.\CaptureSound.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'.

a year later and no solution, i am getting the same result...Thanks

anybody got a solution?

Streetkeeper at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ General...
# 4

Solution: copied everything in the mfc directory to the include directory ..capturesound build succeeded

http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q326987#appliesto

Streetkeeper at 2007-9-9 > top of Msdn Tech,Visual C++,Visual C++ General...