Jump to content
  • Advertisement
Sign in to follow this  
BinaryDeadBeef

hwnd issues relating to DirectX10 project framework

This topic is 2574 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

I have just written my application frame work again, I am however, currently experiences error relating to hwnd. I've been debugging my program for a couple of hours now, seems like I am out of options, I would appreciate it someone more experienced than I could look over the code and throw me some indications as to were my problems have arisen from.

tl;dr hwnd problem, need help



The problem currently 'seems' related to:

swapChainDesc.OutputWindow = *hWnd;

I am left with an access read violation error


My code is organised such that:

dxGeometry->dxD3D.h->dxSystem->winMain


Screenshot of output:
Autos.jpg


dxGeometry.h
http://pastebin.com/DaifJK15

dxD3D.h
http://pastebin.com/d0RMmNvK

dxSystem.h
http://pastebin.com/a28BV8AX

winMain.cpp
http://pastebin.com/3c9sGcv5

A direct download of the application:
http://hotfile.com/dl/136477984/3be


Many thanks guys.

Share this post


Link to post
Share on other sites
Advertisement
I'm currently rewriting large areas of the framework, trying to eliminate issues with resources not getting allocated correctly. This should hopefully narrow the problem down.

Share this post


Link to post
Share on other sites
You can't dereference an HWND. It's a handle, not a pointer. Just copy the handle right into the swap chain description.

Share this post


Link to post
Share on other sites
I wrote the application frame work out again, I'm down this error now:

m_dxd3d CXX0030: expression cannot be evaluated.

When called from my render method:

void dxSystem::render()
{
m_dxd3d->beginScene();

m_dxd3d->endScene();

}

my render method is what is called in winMain.cpp

begin scene just contain the standard functions:

ClearRenderTargetView()
ClearDepthStencilView()

and

Present()

Thanks

Share this post


Link to post
Share on other sites
Hidden
[color=#181818][font=monospace][/font]
"[font="monospace"][color="#181818"]HWND[/font][color=#000040][font=monospace]*[/font][color=#181818][font=monospace] hWnd[/font][font="monospace"][color="#008080"];[/font]" in dxD3D class that you don't initialize anywhere.[color=#008080][font=monospace][/font]

Share this post


Link to post
Thanks for the replies so far, I've applied what you've all said, eliminated those problems. But now there's 'this', a picture will convery the information better perhaps:
Error_report.jpg

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!