   DirectDraw7: fullscreen and SetCooperativeLevel FAILS
  Hi.I saw tons of tutorials to init the fullscreen mode. Here is te kode: DirectDrawCreateEx (nil, DDraw, IID_IDirectDraw7, nil); DDraw.SetCooperativeLevel (R.hWindow, DDSCL_EXCLUSIVE or DDSCL_FULLSCREEN);And what do you think, what the SetCooperativeLevel do? RETURNS WITH INVALIDPARAMS!! :((( what can I do with this ssssht?   
  OK, I solved, the topic can be erased by the moderator.   ;  Why not tell others your findings so that they can avoid the same issue?   ;  Because I have posted plenty of questions, and didn't get reply. I am of the opinion that about 30 people visits this page. I don't think there is someone in this planet who will see this topic again or uses DirectDraw in delphi.But okay, I'll tell the sollution :) but if you guys programs in C++ (the most of programmers makes game, or serious application in C++, not in Delphi, but Delphi hi an excellent 32 bit language, but never mind), I don't think you can use this information.So this sollution is for mainly the Delphi programmers :)If you are programming with delphi and making a GUI application, you automatic get a new window (main window, called FORM). This is the main window. If you close this window, the application halts. But not this window is the REAL window. You even get an Application object too. And both has got handle - Form1.Handle AND Application.Handle. Most of programmers think at now that this two handle are equal - they are not! I used an variable called "R.hWindow". It gets handle of form1. So:SetCooperativeLevel (FORM1.HANDLE, DDSCL_EXCLUSIVE or DDSCL_FULLSCREEN);This works in windowed mode BUT not in full-screen mode. The correct form is:SetCooperativeLevel (APPLICATION.HANDLE, DDSCL_EXCLUSIVE or DDSCL_FULLSCREEN);So when you're programming in delphi, you have got 2 window. The APPLICATION identify the REAL main window, but it is hidden. The DirectDraw shows it automatically.I hope this is enough and good. And I hope that some delphi coder will see this topic and avoid that brainstorm that I felt.   ;Quote:Original post by BigBeginnerBecause I have posted plenty of questions, and didn't get reply. I am of the opinion that about 30 people visits this page. I don't think there is someone in this planet who will see this topic again or uses DirectDraw in delphi.According to your profile, you've started 23 topics. It appears that all but 4 or 5 of them got a response. Some of those that didn't get a response you solved within a few hours of posting, so maybe noone had an opportunity to answer before you solved the problem yourself.I'm fairly certain that there are many more than 30 poeple visiting this forum, and I have seen many questions regarding the use of Delphi with DirectX. I don't think your information will be wasted here. If it helps just one other person then it's worth posting.