Archived

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

Squeejee

SetDisplayMode

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
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