|
我用的DX8 SDK,使用DirectDrawCreateEx(x, x, IID_IDirectDraw7, x)创建的DirectDraw7对象,所以用它创建的页面也是IDirectDrawSurface7类型的。但当我使用ddutil.h中提供的系列函数,比如:DDReLoadBitmap()时,传入的参数必须是IDirectDrawSurface类型的页面指针,而不是IDirectDrawSurface7。起初我猜想IDirectDrawSurface7是继承自IDirectDrawSurface的派生类,就直接把IDirectDrawSurface7对象强制类型转换成IDirectDrawSurface传入DDReLoadBitmap(),虽然编译通过,但它好象不能正常工作。
谁能告诉我怎么在DDReLoadBitmap()之类的函数中使用IDirectDrawSurface7之类的对象;如果不能用,那我该换成什么方法来操作我的IDirectDrawSurface7?? [em4] |
|