Original Post
I have 2 classes, C_Menu & C_Game. lpDDSbackbuffer (the secondary buffer) is a private member in C_Game and I need to access it in a member function of C_Menu
C_Menu has a function called DrawGraphics() which needs the backbuffer in order to blit.
How do I get access to the backbuffer in CMenu ?
I have tried this "solution":
I added a pointer to an DIRECTDRAWSURFACE in CMenu and made an overloaded function
CMenu::CMenu(LPDIRECTDRAWSURFACE *pLpDDSBuffer);
But I get this error when trying to blit (in CMenu using a pointer):
"error C2227: left of ''->BltFast'' must point to class/struct/union"
hope you understand my poor description..