Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Full Screen DirectX

Posted on 2004-04-30
3
Medium Priority
?
485 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

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…
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.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

670 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