   Stupid Stupid Question...
  I can set up  Direct drwa < version 7> But I dont remember how to kill the directdraw object,directdraw surfaces,and etc...I think this is why my window closes, but the program stays in memory... Am i Right????    to Code, or Not To Code  
  Just call the Release() method from your object.assuming that lpDD is your LPDIRECTDRAW7, call lpDD->Release();Same goes for your surfaces, just remember to release them in reverse order (first created, last released).Hope this helps .  ;  And to be on the safe side you should check if they''re non-NULL first, and make them NULL after you release them.e.g.if(lpDD){lpDD->Release();lpDD = NULL;}  