Original Post
I have two .cpp files and in the first one there''s the :
LPDIRECTDRAW7 g_ddraw = NULL;
how can i access g_ddraw in the second .cpp file so i can call
g_ddraw->GetDisplayMode() ?
or do i have to pass the value as a parameter through every function till the one i want to use it in ?