SetDisplayMode

Started by
5 comments, last by Squeejee 22 years, 5 months ago
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.
-----
Advertisement
Anyone?
-----
What dx version you usin?

Eric Wright o0Programmer0o

NeXe

My Homepage
Eric Wright o0Programmer0o
I am using 6.0 but I got version 8.0 on my computer.
-----
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.
-----
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
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’...
-----

This topic is closed to new replies.

Advertisement