   CreateAdditionalSwapChain ...
  Hi All,I just start using DirectX with MFC to build a basic SceneEditor to feed something more interessting into my engine than those crappy little box and balls bouncing around... :P1st: I just start using D3D/Cpp. My engine was written in C#, so im porting it back to Cpp. Most of it is now working, but when im trying to debug my application i can't find the DirectX Debug Informations... (DX isnt reporting to the console of VS)2nd: About the CreateAdditionalSwapChain... (like i said in 1st, i cant get more info since debug doesnt seem to work). CreateAdditionalSwapChain was working in C#.. The function now returns "Error in Driver".The code i use to initialise the application is:LPRENDERWINDOW CRenderer::Initialise(HWND hWnd, bool bFullScreen){// Create the reference to the Direct3D COMif (NULL == (this->m_pD3D = Direct3DCreate9(D3D_SDK_VERSION) ) )return NULL;// Prepare the Presentation Parameters, Width and Height are taken from hWndD3DPRESENT_PARAMETERS presentationParameters;ZeroMemory(&presentationParameters, sizeof(presentationParameters));presentationParameters.hDeviceWindow = hWnd;presentationParameters.Windowed = !bFullScreen;presentationParameters.SwapEffect = D3DSWAPEFFECT_COPY;presentationParameters.BackBufferFormat = D3DFMT_UNKNOWN;// Create the Direct3D DeviceHRESULT deviceResult = m_pD3D->CreateDevice(D3DADAPTER_DEFAULT,D3DDEVTYPE_HAL,hWnd,D3DCREATE_HARDWARE_VERTEXPROCESSING,&presentationParameters,&m_pD3DDevice);// If device creation failed, show a friendly messageif (FAILED(deviceResult)){const char* errorMessage = DXGetErrorDescription9(deviceResult);MessageBox(NULL, errorMessage, "Error Creating Device", MB_OK | MB_ICONERROR);return NULL;}// Create a RenderWindow LPRENDERWINDOW pRenderWindow = new RENDERWINDOW("RenderWindow", hWnd);m_pRenderWindows.push_back(pRenderWindow);// Return the newly created RenderWindowreturn pRenderWindow;}And, when i want to create anoter RenderWindow (another window to render to (new SwapChain))LPRENDERWINDOW CRenderer::CreateRenderWindow(XEONID renderWindowID, HWND hWnd){// Prepare the Presentation Parameters, Width and Height are taken from hWndD3DPRESENT_PARAMETERS presentationParameters;ZeroMemory(&presentationParameters, sizeof(presentationParameters));presentationParameters.hDeviceWindow = hWnd;presentationParameters.Windowed = TRUE;presentationParameters.SwapEffect = D3DSWAPEFFECT_COPY;presentationParameters.BackBufferFormat = D3DFMT_UNKNOWN;// Create a new child SwapChainLPDIRECT3DSWAPCHAIN9 lpSwapChain;HRESULT createSwapChainResult = m_pD3DDevice->CreateAdditionalSwapChain(&presentationParameters, &lpSwapChain);if (FAILED(createSwapChainResult)){const char* errorMessage = DXGetErrorDescription9(createSwapChainResult);MessageBox(NULL, errorMessage, "Error Creating Device", MB_OK | MB_ICONERROR);return NULL;}// Create the new RenderWindow with the SwapChainLPRENDERWINDOW pRenderWindow = new RENDERWINDOW(renderWindowID, hWnd, lpSwapChain);// Return the new RenderWindowreturn pRenderWindow;}In CreateRenderWindow, the m_pD3DDevice->CreateAdditionalSwapChain(&presentationParameters, &lpSwapChain) Failed and the MessageBox is showing "Error in Driver"...So, if some1 can tell me how to enable debugging (dx is set to debug in my ControlPanel) or if u saw that weird error plz post!! :DThx for your help...JonathanPS.. Ho.. when i call Initialize the hWnd is the CMainFrame::m_hWnd, and when i call the CreateRenderWindow i pass in a CView::m_hWnd... Yes it is MFC.   
  You cannot do that in fullscreen mode.