Click here to Skip to main content
15,923,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalchar array -> system::string Pin
Darcy P14-Oct-04 2:57
Darcy P14-Oct-04 2:57 
GeneralCString problem Pin
Anonymous14-Oct-04 2:33
Anonymous14-Oct-04 2:33 
GeneralRe: CString problem Pin
David Crow14-Oct-04 2:42
David Crow14-Oct-04 2:42 
GeneralRe: CString problem Pin
BlackDice14-Oct-04 3:01
BlackDice14-Oct-04 3:01 
GeneralRe: CString problem Pin
Bob Stanneveld14-Oct-04 3:33
Bob Stanneveld14-Oct-04 3:33 
GeneralRe: CString problem Pin
hyling14-Oct-04 4:17
hyling14-Oct-04 4:17 
GeneralLinking a C# dll into C++ Pin
Member 131514814-Oct-04 2:21
Member 131514814-Oct-04 2:21 
GeneralDirectX CreateSurface question Pin
Cedric Moonen14-Oct-04 2:03
Cedric Moonen14-Oct-04 2:03 
Hello !

I just started DirectX programming (based on samples I found on several websites). In fact I want to make a game (so in fullscreen mode). Everything is ok for that part but the problem when using this exclusive & fullscreen mode is that you cannot debug anymore (the screen remains black when a break point is reached in your code).

So I wanted to first start by using a windowed game for debugging purpose. But there the problem is when I try to create the front buffer using CreateSurface (with CooperativeLevel flags set to DDSCL_NORMAL):


     DDSURFACEDESC2		ddsd;<br />
   ZeroMemory( &ddsd, sizeof( ddsd ) );<br />
<br />
    ddsd.dwSize = sizeof( ddsd );<br />
    ddsd.dwFlags = DDSD_CAPS | DDSD_BACKBUFFERCOUNT;<br />
    <br />
	ddsd.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE |<br />
                          DDSCAPS_FLIP |<br />
                          DDSCAPS_COMPLEX;<br />
							<br />
    ddsd.dwBackBufferCount = 1;<br />
    <br />
	hRet = m_pDirectDraw->CreateSurface(&ddsd, &m_pFrontBuffer, NULL );


The function returns DDERR_NOEXCLUSIVEMODE ...

How can I solve the problem ??
GeneralRe: DirectX CreateSurface question Pin
BlackDice14-Oct-04 3:03
BlackDice14-Oct-04 3:03 
GeneralRe: DirectX CreateSurface question Pin
Cedric Moonen14-Oct-04 3:11
Cedric Moonen14-Oct-04 3:11 
GeneralRe: DirectX CreateSurface question Pin
Antony M Kancidrowski14-Oct-04 4:12
Antony M Kancidrowski14-Oct-04 4:12 
GeneralRe: DirectX CreateSurface question Pin
Cedric Moonen14-Oct-04 4:31
Cedric Moonen14-Oct-04 4:31 
GeneralRe: DirectX CreateSurface question Pin
Antony M Kancidrowski14-Oct-04 4:57
Antony M Kancidrowski14-Oct-04 4:57 
GeneralRe: DirectX CreateSurface question Pin
Cedric Moonen14-Oct-04 20:40
Cedric Moonen14-Oct-04 20:40 
GeneralRe: DirectX CreateSurface question Pin
John M. Drescher14-Oct-04 6:32
John M. Drescher14-Oct-04 6:32 
Generalhow:enumerate remote PCs Pin
happycpp14-Oct-04 1:52
happycpp14-Oct-04 1:52 
GeneralRe: how:enumerate remote PCs Pin
David Crow14-Oct-04 2:32
David Crow14-Oct-04 2:32 
GeneralMemory Mapped Files: Hadling Big Files Pin
krabhinav14-Oct-04 1:51
krabhinav14-Oct-04 1:51 
GeneralRe: Memory Mapped Files: Hadling Big Files Pin
David Crow14-Oct-04 2:41
David Crow14-Oct-04 2:41 
GeneralAdding accelerator keys to Buttons and Toolbars Pin
ledallam14-Oct-04 1:39
ledallam14-Oct-04 1:39 
GeneralRe: Adding accelerator keys to Buttons and Toolbars Pin
Sujan Christo14-Oct-04 2:03
Sujan Christo14-Oct-04 2:03 
GeneralRe: Adding accelerator keys to Buttons and Toolbars Pin
ledallam14-Oct-04 18:21
ledallam14-Oct-04 18:21 
GeneralRegarding Modeless dialog Pin
balajeedurai14-Oct-04 1:14
balajeedurai14-Oct-04 1:14 
GeneralRe: Regarding Modeless dialog Pin
Sujan Christo14-Oct-04 2:06
Sujan Christo14-Oct-04 2:06 
GeneralRe: Regarding Modeless dialog Pin
balajeedurai14-Oct-04 2:49
balajeedurai14-Oct-04 2:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.