int DD_Unlock_Surface(LPDIRECTDRAWSURFACE7 lpDDS, UCHAR *surface_buffer)
{
// this unlocks a general surface
// is this surface valid
if (!lpDDS)
return(0);
// unlock the surface memory
lpDDS->Unlock((UCHAR *)surface_buffer);
// return success
return(1);
} // end DD_Unlock_Surface
from DX6 to DX7
i am currently trying to convert some code from DX6 to DX7.
i jus left with this funny error>
error C2664: 'Unlock' : cannot convert parameter 1 from 'unsigned char' to 'struct tagRECT *'
the part of the code is>
wats wrong?
[edited by - edwinnie on April 15, 2002 1:37:55 AM]
[edited by - edwinnie on April 15, 2002 1:38:55 AM]
Please do not cross post.
And, quite obviously, IDirectDrawSurface7::Unlock() does not accept unsigned char (AKA UCHAR) as a parameter. Read the documentation.
I will not make a list of links... I will not make a list of links... I will not make a list of links...
Invader''s Realm
And, quite obviously, IDirectDrawSurface7::Unlock() does not accept unsigned char (AKA UCHAR) as a parameter. Read the documentation.
I will not make a list of links... I will not make a list of links... I will not make a list of links...
Invader''s Realm
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement