Hi,

I'm just messing around with DirectX 8.1a SDK, I use Visual Studio 2010 Professional. When using some of the samples, I get random errors that are usually fixable just by modifying the source code files. I have been trying to get the DolphinVS sample running and I keep running into errors related to the d3dapp.cpp source file it uses:

1>..\..\common\src\d3dapp.cpp(258): error C2065: 'm' : undeclared identifier
1>..\..\common\src\d3dapp.cpp(274): error C2065: 'f' : undeclared identifier
1>..\..\common\src\d3dapp.cpp(411): error C2065: 'm' : undeclared identifier
1>..\..\common\src\d3dapp.cpp(411): error C2065: 'm' : undeclared identifier
1>..\..\common\src\d3dapp.cpp(411): error C2065: 'm' : undeclared identifier
1>..\..\common\src\d3dapp.cpp(413): error C2065: 'm' : undeclared identifier
1>..\..\common\src\d3dapp.cpp(413): error C2228: left of '.Width' must have class/struct/union
1>..\..\common\src\d3dapp.cpp(413): error C2065: 'm' : undeclared identifier
1>..\..\common\src\d3dapp.cpp(413): error C2228: left of '.Height' must have class/struct/union
1>..\..\common\src\d3dapp.cpp(415): error C2065: 'm' : undeclared identifier
1>..\..\common\src\d3dapp.cpp(416): error C2065: 'm' : undeclared identifier
1>..\..\common\src\d3dapp.cpp(416): error C2228: left of '.Format' must have class/struct/union
1>..\..\common\src\d3dapp.cpp(417): error C2065: 'm' : undeclared identifier
1>..\..\common\src\d3dapp.cpp(417): error C2228: left of '.Format' must have class/struct/union
1>..\..\common\src\d3dapp.cpp(418): error C2065: 'm' : undeclared identifier
1>..\..\common\src\d3dapp.cpp(418): error C2228: left of '.Format' must have class/struct/union
1>..\..\common\src\d3dapp.cpp(1542): error C2065: 'm' : undeclared identifier
1>..\..\common\src\d3dapp.cpp(1542): error C2065: 'm' : undeclared identifier
1>..\..\common\src\d3dapp.cpp(1542): error C2065: 'm' : undeclared identifier
1>..\..\common\src\d3dapp.cpp(1552): error C2065: 'm' : undeclared identifier
1>..\..\common\src\d3dapp.cpp(1556): error C2065: 'm' : undeclared identifier
1>..\..\common\src\d3dapp.cpp(1558): error C2065: 'm' : undeclared identifier
1>..\..\common\src\d3dapp.cpp(1561): error C2065: 'm' : undeclared identifier
1>..\..\common\src\d3dapp.cpp(1567): error C2065: 'm' : undeclared identifier
1>..\..\common\src\d3dapp.cpp(1572): error C2065: 'm' : undeclared identifier
1>..\..\common\src\d3dapp.cpp(1572): error C2065: 'm' : undeclared identifier
1>..\..\common\src\d3dapp.cpp(1577): error C2065: 'm' : undeclared identifier
1>..\..\common\src\d3dapp.cpp(1577): error C2065: 'm' : undeclared identifier

Mainly it looks like it needs to be a DWORD of some type? Judging by some code from the source:

Code:
// If we found a new mode, add it to the list of modes
            if( m == dwNumModes )
            {
                modes[dwNumModes].Width       = DisplayMode.Width;
                modes[dwNumModes].Height      = DisplayMode.Height;
                modes[dwNumModes].Format      = DisplayMode.Format;
                modes[dwNumModes].RefreshRate = 0;
                dwNumModes++;

                // Check if the mode's format already exists
                for( DWORD f=0; f<dwNumFormats; f++ )
                {
                    if( DisplayMode.Format == formats[f] )
                        break;
                }

                // If the format is new, add it to the list
                if( f== dwNumFormats )
                    formats[dwNumFormats++] = DisplayMode.Format;
            }
        }
Fairly new to DirectX and I'm sure it is some sort of C++ syntax error of some sort that I'm missing, I have gone into the project properties and included the include and lib folders of the DXSDK.

Thanks!