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
![](https://uploads.gamedev.net/forums/monthly_2022_01/5f9fc9c9e4574b838bed22d6f526c5dc.1Untitled.png)
![](https://uploads.gamedev.net/forums/monthly_2022_01/6843ddc153b3438c88717cf130e9c302.Untitled.png)