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:
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.
Bookmarks