Jump to content
  • Advertisement

Archived

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

Squeejee

SetDisplayMode

This topic is 6089 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

I am using MSVC++ and I am tring to use the Set Display mode function, but for some reason when I try to compile it, it tells me that it does not take 5 parameters. It says it only takes three. If I take the last two off it compiles it but a message box pops up when I run the app telling me I have a debug error.

Share this post


Link to post
Share on other sites
Advertisement
Does anyone know? Please, I really want to learn DirectX so I can get into graphical programming, but until this is fixed I can''t do any thing else. Someone else must have had this problem before too. Please help me.

Share this post


Link to post
Share on other sites
hey, well in DX 6, it should look like this:

lpDD->SetCooperativeLevel(hwnd,DDSCL_EXCLUSIVE|DDSCL_FULLSCREEN);
lpDD->SetDisplayMode(640,480,16);

but remember that you can only set the Display mode in fullscreen... Could you maybe give some more information on whats happening?

Jason Arora
jason@pubism.com
http://www.pubism.com

Share this post


Link to post
Share on other sites
Son of a... Don’t you hate it when you get an error and waste a whole week of your time trying to figure it out. Then you try to explain the debug error you are getting and it becomes completely clear. One week of time wasted because I forgot one little ‘4’...

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!