Solved

Full Screen DirectX

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DirectXFramework 5 113
RTS game terrain data structures. Are grids / contours a method? What is standard? 3 434
How do I lock down a trademark? 11 77
Python chess DS needs help 2 158
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 …
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.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

776 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