Compile error on DX9/10 Samples

Hi,
I've downloaded the February DX SDK from the MS site.
When I try to compile the samples (all) I get the errors:

error C2061: syntax error : identifier '__in'
error C2059: syntax error : ')'

This error is on the D3D10.h file.
It seems that something is missing. I'm compiling in VS 2003.

Any ideas



Answer this question

Compile error on DX9/10 Samples

  • Michael Maes

    We take all that time to create a README file...and yet I still have to repost portions of the README in the forums...

  • Attention Visual Studio 2003 Users: In order to use the Direct3D10 April 2006 Tech Preview with VS2003, you need to have the latest version of the Windows Platform SDK installed. Otherwise, headers will fail to compile.


  • mohsan

    Thanks for posting the tip on the __in issue anyways. That makes it searchable in Google.

  • ltaylor934

    This is a know problem with Visual Studio 2003. If I remember correctly there a two possible solutions for this.

    1. Download and install the newest Windows SDK.

    2. Define __in as nothing before you include the DirectX headers.



  • SolidStrategies

    In case someone is looking to fix the problem... I got this working by downloading the microsoft windows platform sdk at:
    http://www.microsoft.com/downloads/details.aspx FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en

    After that installed, there's a start menu item Visual Studio Registration -> Register PSDK... builds worked after that.


  • huzzy

    Sorry. First time user. I'll read the readme as soon as I find it.
    Thank you

  • Darlek

    Hi All,

    This is very urgent please help me immediately.

    I am getting the major compiler error C2061 in Visual Studio 2003 on Vista OS

    I have installed the SDK for the Vista Build 5472. This SDK installed aske me for installation of teh visual studio Express. Also i have installed the same. When i build my application VS 2003 i am getting the C2061 error. Also i have done the SDK registrationon Vista OS bu running the "Register Windows SDK Directories with VS 2005" application.

    This application will compile fine in VS 2005 but not in 2003 .

    Please help me this is very urgent.

    -Vivek



  • Compile error on DX9/10 Samples