Original Post
(sry for bad eng) hi i can't run my directx code and this is the first time i use HLSL and my windows appear black and it crash on this line RUntime effect->FindNextValidTechnique(NULL, &technique); first i changed my createdevice function from d3d->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd, 0, &d3dpp, &d3ddev); to d3d->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd, D3DCREATE_SOFTWARE_VERTEXPROCESSING, &d3dpp, &d3ddev); I read this from a site but nothing happend and my program just crashed at the same line thx