SetDisplayMode
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.
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement