Hello
Need some help. I'm not a programmer . I try port one old game Direkt x 8,1 to Direkt x 9
I have sucess , the code compiles but when i open game it will crach because old code i delete m_dwWaterPixelShader and m_dwWaterShader .
Now i restore this place old code and i get error
D3DXAssembleShader(strWaterPixelShader,strlen(strWaterPixelShader),0,NULL,(DWORD)&pCode,NULL,0);
BaseGraphicsLayer::GetDevice()->CreatePixelShader((DWORD*)pCode->GetBufferPointer(),(DWORD)&m_dwWaterPixelShader);
pCode->Release();
D3DXAssembleShader(strWaterVertexShader,strlen(strWaterVertexShader),0,NULL,(DWORD)&pCode,NULL,0);
BaseGraphicsLayer::GetDevice()->CreateVertexShader( (DWORD*)dwWaterVertexDecl, ((DWORD*)pCode->GetBufferPointer(), (DWORD)&m_dwWaterShader );
pCode->Release();
Cant use (DWORD)&m_dwWaterShader and (DWORD)&m_dwWaterPixelShader it will give error. Can some one help me this place ?
Ty anyway โฆ
I hve try diffirent way fix this but all time FAIL