Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General.NET runtime environments Pin
Anonymous2-Feb-03 9:48
Anonymous2-Feb-03 9:48 
GeneralRe: .NET runtime environments Pin
Michael Dunn2-Feb-03 10:20
sitebuilderMichael Dunn2-Feb-03 10:20 
GeneralRe: .NET runtime environments Pin
Joaquín M López Muñoz2-Feb-03 10:17
Joaquín M López Muñoz2-Feb-03 10:17 
GeneralOpenGL and VS.NET Pin
Michael A. Barnhart2-Feb-03 9:21
Michael A. Barnhart2-Feb-03 9:21 
GeneralRe: OpenGL and VS.NET Pin
Ben Burnett3-Feb-03 10:41
Ben Burnett3-Feb-03 10:41 
GeneralRe: OpenGL and VS.NET Pin
Michael A. Barnhart3-Feb-03 15:10
Michael A. Barnhart3-Feb-03 15:10 
GeneralDirectDraw Surface with Back Buffer Pin
Compuholic2-Feb-03 9:17
Compuholic2-Feb-03 9:17 
GeneralRe: DirectDraw Surface with Back Buffer Pin
Paul M Watt2-Feb-03 9:52
mentorPaul M Watt2-Feb-03 9:52 
Problem:
Compuholic wrote:
if (FAILED(lpDD7->SetCooperativeLevel(hWnd, DDSCL_NORMAL | DDSCL_FULLSCREEN | /*DDSCL_EXCLUSIVE | */DDSCL_ALLOWREBOOT)))

DDSCL_NORMAL and DDSCL_FULLSCREEN are mutually exclusive. You cannot use them together. If you want a Fullscreen application use DDSCL_FULLSCREEN, and if you are going to run your app in a window use DDCSL_NORMAL.

Other than that things look ok to me. If you would like an example of some DirectDraw code, I have written a simple framework that I use in a Tetris game that I wrote and posted here on code project. You are welcome to check that out: Tetris[^]

Good Luck


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: DirectDraw Surface with Back Buffer Pin
Compuholic2-Feb-03 10:30
Compuholic2-Feb-03 10:30 
GeneralRe: DirectDraw Surface with Back Buffer Pin
Paul M Watt2-Feb-03 12:36
mentorPaul M Watt2-Feb-03 12:36 
GeneralAuto sorting list control Pin
autekre2-Feb-03 8:41
autekre2-Feb-03 8:41 
Generalbrain-teaser (?) 'cloaked' pointers Pin
Anonymous2-Feb-03 6:59
Anonymous2-Feb-03 6:59 
GeneralRe: brain-teaser (?) 'cloaked' pointers Pin
Joaquín M López Muñoz2-Feb-03 7:09
Joaquín M López Muñoz2-Feb-03 7:09 
GeneralRe: brain-teaser (?) 'cloaked' pointers Pin
Joel Lucsy3-Feb-03 2:43
Joel Lucsy3-Feb-03 2:43 
QuestionComboBox and mousebutton? Pin
Stefan Dahlin2-Feb-03 4:52
Stefan Dahlin2-Feb-03 4:52 
AnswerRe: ComboBox and mousebutton? Pin
Michael Dunn2-Feb-03 6:11
sitebuilderMichael Dunn2-Feb-03 6:11 
GeneralRe: ComboBox and mousebutton? Pin
Stefan Dahlin2-Feb-03 6:20
Stefan Dahlin2-Feb-03 6:20 
AnswerRe: ComboBox and mousebutton? Pin
Gary R. Wheeler2-Feb-03 6:22
Gary R. Wheeler2-Feb-03 6:22 
Generalsplit Wnd Pin
smallcoder2-Feb-03 4:18
smallcoder2-Feb-03 4:18 
QuestionPreSubClassWindow() has no valid font on recreate? Pin
Moak2-Feb-03 2:05
Moak2-Feb-03 2:05 
AnswerRe: PreSubClassWindow() has no valid font on recreate? Pin
Moak3-Feb-03 0:48
Moak3-Feb-03 0:48 
QuestionHow can I load file.x from Listbox? Pin
poomred2-Feb-03 1:43
poomred2-Feb-03 1:43 
AnswerRe: How can I load file.x from Listbox? Pin
Gero Gerber2-Feb-03 2:01
Gero Gerber2-Feb-03 2:01 
AnswerRe: How can I load file.x from Listbox? Pin
Dominik Reichl2-Feb-03 2:39
Dominik Reichl2-Feb-03 2:39 
AnswerRe: How can I load file.x from Listbox? Pin
Abbas_Riazi2-Feb-03 4:11
professionalAbbas_Riazi2-Feb-03 4:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.