Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SetDisplayMode

Status
Not open for further replies.

nancyjames

Programmer
Aug 14, 2003
5
GB
I'm working on a project and I'm having a problem with SetDisplayMode(1024,768,32);

I get 2 errors


main.cpp(47) : error C2501: 'SetDisplayMode' : missing storage-class or type specifiers
main.cpp(47) : error C2078: too many initializers

can anyone help?
 
Post the relevant code that calls SetDisplayMode

-pete
 
all the code up to that point

//system includes
#include <windows.h>
#include <windowsx.h>
#include <ddraw.h>
#include <stdio.h>

//system defines
#define WIN32_LEAN_AND_MEAN

//custom includes
#include &quot;defines.h&quot; //global definitions
#include &quot;bmp.h&quot; //bmp file reader
#include &quot;gtimer.h&quot; //game timer
#include &quot;csprite.h&quot; //for clipped sprite class
#include &quot;objects.h&quot; //for object class
#include &quot;objman.h&quot; //for object manager
#include &quot;view.h&quot; //for viewpoint class
#include &quot;random.h&quot; //for random number generator
#include &quot;psound.h&quot; //for sound manager
#include &quot;input.h&quot; //for input manager
#include &quot;text.h&quot; //for text sprite manager
#include &quot;score.h&quot; //for score manager
#include &quot;topscore.h&quot; //high score list

//defines
#define MAX_OBJECTS 32 //max number of objects in game

//globals
SetDisplayMode(1024,768, 32);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top