Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Full Screen DirectX

Posted on 2004-04-30
3
Medium Priority
?
489 Views
Last Modified: 2010-04-07
I can't seem to find out how to make my DirectX game run in full screen. I have...

d3dpp.Windowed = TRUE;

But when I set it to FALSE I get the following error...

The program 'C:\vbar\Debug\Keyboard.exe' has exited with code 0 (0x0).

I have a feeling I have to either add something to my setRenderState() or createDevice() but I can't find out what.

Please help,

Darrell
0
Comment
Question by:redneon
1 Comment
 
LVL 4

Accepted Solution

by:
zinno earned 200 total points
ID: 10966728
its the last parameter of

WINAPI WinMain( handle, handle ,commandline ,int ncmdshow)

should be passed in ShowWindow() which actually displays a window after it's created

ShowWindow(handle, ncmdshow);

few options here

SW_SHOWNORMAL
SW_SHOW
SW_HIDE
SW_MAXIMIZE
SW_MINIMIZE
SW_RESTORE
SW_SHOWMAXIMIZED
SW_SHOWMINIMIZED
SW_SHOWNOACTIVE



0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As game developers, we quickly learn that Artificial Intelligence (AI) doesn’t need to be so tough.  To reference Space Ghost: “Moltar, I have a giant brain that is able to reduce any complex machine into a simple yes or no answer. (http://www.youtu…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question