Solved

Full Screen DirectX

Posted on 2004-04-30
3
478 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 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

24 Experts available now in Live!

Get 1:1 Help Now