C
crodling
Unregistered / Unconfirmed
GUEST, unregistred user!
……
SurfaceDesc.dwSze=sizeof(SurfaceDesc)
SurfaceDesc.dwFlags=DDSD_CAPS or DDSD_BACKBUFFERCOUNT;
SurfaceDesc.ddscaps.dwcaps=DDSCAPS_PRIMARYSURFACE or DDSCAPS_FLIP OR DDSCAPS_COMPLEX
SurfaceDesc.dwBackBUfferCount=1;
hr=FDirectdraw.createSurface(SurfaceDesc,FPrimarySurface,nil);
//程序执行到这里就抛出异常,"……Access voliation ……"
……
请问是什么缘故啊?
SurfaceDesc.dwSze=sizeof(SurfaceDesc)
SurfaceDesc.dwFlags=DDSD_CAPS or DDSD_BACKBUFFERCOUNT;
SurfaceDesc.ddscaps.dwcaps=DDSCAPS_PRIMARYSURFACE or DDSCAPS_FLIP OR DDSCAPS_COMPLEX
SurfaceDesc.dwBackBUfferCount=1;
hr=FDirectdraw.createSurface(SurfaceDesc,FPrimarySurface,nil);
//程序执行到这里就抛出异常,"……Access voliation ……"
……
请问是什么缘故啊?