Talk:DirectX:DirectDraw:Tutorials:VBNET:DX9:Basics
From GPWiki"SetCooperativeLevel" is not working. Are there any other alternatives? - Max SetCooperativeLevel is nessecary. If you have correctly typed the code (and typos do happen to the best of us), SetCooperativeLevel may be failing because your computer is unable to create a fullscreen device. This seems highly unusual to me, but it is the first thought that popped into my mind. What kind of a graphics card do you have? It may be a different problem. You didn't give enough information for me to be sure of anything, so if you can give me more details, that might help. Here are some things to double check: Did you reference both Microsoft.DirectX and Microsoft.DirectX.DirectDraw? Do you understand how to do this? Did you remember to add both imports statements to the very top of your code? Are any of the lines underlined in blue? (this only if you are using Microsoft Visual Studio.NET) If we can't get it working even after you give more details, maybe I could upload my source code for you to test on your machine. I hope this helps! --Lachlan87 14:32, 3 Apr 2005 (EDT) [edit] About the Cooperative errorI have the same problem. Gives me a line saying "value does not fall into accepted range". Im sure this is referring to the "me" statement. I messed around with both values and still got the same error. -Viper54K [edit] ColorKeyI've looked in a number of different place about this, and it seems that the only colours that work in ColorKeys are black or white. Anyone got any more info on that?
[edit] CooperativeLevelFlags.FullscreenExclusive doesnt work :(Ok I have tried several bits of code i downloaded and copying and pasting whats written here, but i cannot get it to work, just get the following error: An unhandled exception of type 'System.ArgumentException' occurred in microsoft.directx.directdraw.dll Additional information: Value does not fall within the expected range.
It seems to me this USED to work, i used this way in VB6 with DX7 and DX8 but may be DX9C wont allow this anymore, theres messages in the help text saying do not use that method and use the new DX9 way. so what is this new way?
|


