   Can't create Swapchain
  Hi,for my job I'm using DirectX8 on VB6.I have to create a little application that must work or in a picturebox or on full-screen modality.So i tryed to create a swapchain.Reading the DX8 SDK, I learnt that DX supports one full-screen swapchain, so I created a device with d3dpresent-parameters with Windowed=0 property and a swapchain with d3dpresent-parameters with Windowed=1 property, but it doesn't work.The error appears on istruction: Set swapChainMax = device.CreateAdditionalSwapChain(D3DWindowMax)What am I wrong?This is the code:Sub CreaSchermo(dxWidth As Long, dxHeight As Long, FhwndMax As Long, FhwndMin As Long)'qui si crea lo schermoSet D3D = DX.Direct3DCreate() 'crea D3d'fullscreenD3DWindowMax.SwapEffect = D3DSWAPEFFECT_FLIPD3DWindowMax.Windowed = 0D3DWindowMax.BackBufferWidth = dxWidthD3DWindowMax.BackBufferHeight = dxHeightD3DWindowMax.BackBufferCount = 1D3DWindowMax.hDeviceWindow = FhwndMaxD3DWindowMax.BackBufferFormat = D3DFMT_X8R8G8B8D3DWindowMax.EnableAutoDepthStencil = 2D3DWindowMax.AutoDepthStencilFormat = D3DFMT_D24S8'finestraD3DWindowMin.SwapEffect = D3DSWAPEFFECT_COPY_VSYNCD3DWindowMin.Windowed = 1D3DWindowMin.BackBufferWidth = 0D3DWindowMin.BackBufferHeight = 0D3DWindowMin.BackBufferCount = 1D3DWindowMin.hDeviceWindow = FhwndMinD3D.GetAdapterDisplayMode D3DADAPTER_DEFAULT, DispModeD3DWindowMin.BackBufferFormat = DispMode.FormatD3DWindowMin.EnableAutoDepthStencil = 1D3DWindowMin.AutoDepthStencilFormat = D3DFMT_D24S8Set device = D3D.CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, FhwndMax, D3DCREATE_SOFTWARE_VERTEXPROCESSING, D3DWindowMax)Set swapChainMin = device.CreateAdditionalSwapChain(D3DWindowMin)Set swapChainMax = device.CreateAdditionalSwapChain(D3DWindowMax)Set superficieDisegnoMin = swapChainMin.GetBackBuffer(0, D3DBACKBUFFER_TYPE_MONO)Set superficieDisegnoMax = device.GetBackBuffer(0, D3DBACKBUFFER_TYPE_MONO)End Sub...sorry for my english... :)   
  I'm fairly sure that swap chains can't have an Automatically generated Depth/Stencil buffer, you need to create it manually.Not sure if that is the problem, you should try enabling the DXSDK debug output. I can't remember exactly how you do it; try Googling.   ;  I've installed and enabled the DXSDK debug output, but I can't see the error description on VB.How can I enable it? I thought to see the error description in debug view...   ;  I thought that it would show errors in the output window but I can't remember exactly.   ;Quote:Original post by Dom_152I'm fairly sure that swap chains can't have an Automatically generated Depth/Stencil buffer, you need to create it manually.I don't think this is the problem.If I set the both d3dPresent_parameters with windowed=1 the software works.The error appears if the device has windowed=1 and the swapchain has windowed=0, or vice versa, or if the both have windowed=1 (but this last case is normal).   