Sign in to follow this  

Memory Access Error while using ddutil

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

this is the line that's being called my_sprite.lpDDS = my_sprite.lpCD->GetDDrawSurface(); but pretty much my_sprite.lpCD->GetDDrawSurface() is the error this is the function in a public section of a class LPDIRECTDRAWSURFACE7 GetDDrawSurface() { return m_pdds; } m_pdds is a private directdraw object in the class CSurface and i'm trying to use it in the class CDisplay. Maybe I'm doing this incorrectly, advice is greatly appreciated.

Share this post


Link to post
Share on other sites
Thx. I called the function to create it but forgot to put a check if it failed or not. When I did this I found out that it was failing. That solved that problem so off I go to the drawing boards to figure out why it's failing. Thx again.

Share this post


Link to post
Share on other sites

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