How can i make it to asm,
I make it DDINVOKE GetDC,lpDDSP,addr hdc it's wrong
Sorry my bad English

lpDDSPrimary->GetDC (&hdc) ;
lpDDSPrimary->ReleaseDC (hdc);
Posted on 2003-03-13 15:42:35 by sysnet
Should work ok

We use the same in HE sometimes (allthugh NOT on Primary surface)

Check the parameters...what error code do you get?
Are all pointers ok?

Check if the surface is not allready Locked() by another function because getDC uses an internal version of Lock()

Can not think about anything else now.
Posted on 2003-03-13 16:10:12 by BogdanOntanu