Sign in to follow this  

CreateRenderTargetView - Giving C2039 error

This topic is 1389 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello,
 
I am receiving this error below:
 
Error 31 error C2039: 'CreateRenderTargetView' : is not a member of 'ID3D11DeviceContext' D:\Development\C++ Project(s)\GameEngine Development Project\GameEngine__0_02\GameEngine__0_02\EngineMain.cpp 272 1 GameEngine__0_02
 
The compiler also brings this up:
 
32 IntelliSense: class "ID3D11DeviceContext" has no member "CreateRenderTargetView" d:\Development\C++ Project(s)\GameEngine Development Project\GameEngine__0_02\GameEngine__0_02\EngineMain.cpp 272 19 GameEngine__0_02
 
 
I have check over everything and all the libs and correct headers are linked and included.
 
The code for this is:
m_d3ddevcontext->CreateRenderTargetView(p_D3DBackBuffer, NULL, &D3D_backbuffer);
p_D3DBackBuffer->Release();
Please if any one knows why the library doesn't appear to have this function which should clearly be in there as im completely baffled.
 
Also i you need any more code snippets or information please just ask..

Share this post


Link to post
Share on other sites

There is no such thing as ID3D11DeviceContext::CreateRenderTargetView? There is ID3D11Device::CreateRenderTargetView.

Share this post


Link to post
Share on other sites

This topic is 1389 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this