Solved

Full Screen DirectX

Posted on 2004-04-30
3
479 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
3 Comments
 
LVL 4

Accepted Solution

by:
zinno earned 50 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
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…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now