Skip to main content
GameDev.net gamedev.net
🔒 Locked

SetDisplayMode

Started by Squeejee Nov 13, 2001 at 3:24 PM 5 replies 550+ views
Original Post
Squeejee
Squeejee
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.
-----
Squeejee
Squeejee
Anyone?
-----
Squeejee
Squeejee
I am using 6.0 but I got version 8.0 on my computer.
-----
Squeejee
Squeejee
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.
-----
JasonA
JasonA
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
Jason Arorajason@pubism.comhttp://www.pubism.com
Squeejee
Squeejee
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’...
-----

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.