This topic is now archived and is closed to further replies.


This topic is 5126 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Well I was running through some tutorials about how to use DirectX and I am just starting out and all. So to begin with I am using DirectDraw specificly and my problem comes in when I try to declare SetDisplayMode with 5 parameters like one tutorial did. It gives me a does not use that many parameters error. I am slightly confused because I have seen it with both 5 and 3 parameters in different places. Any ideas whats going on here? Thanks for the help in advance.

Share this post

Link to post
Share on other sites
The IDirectDraw version of SetDisplayMode() takes 3 parameters.

The IDirectDraw2, IDirectDraw4 and IDirectDraw7 interface versions of SetDisplayMode() take 5 parameters.

So I suspect you''ve got your DirectDraw pointer declared as LPDIRECTDRAW/IDirectDraw* rather than LPDIRECTDRAW7/IDirectDraw7* (or whichever version you''re using if the tutorial is for a version other than 7).

Another thing to check is that the paths to the DirectX SDK header and library files are in the directories list in Tools->Options of MSVC (assuming that''s what you use) AND are at the *TOP* of each list.

Simon O''Connor
3D Game Programmer &
Microsoft DirectX MVP

Share this post

Link to post
Share on other sites