I know this is simple, but it's eating my lunch!
I''m trying to write a program using DX7 sdk. I have done this hundereds of times in the previous versions of DX. Anyways here is the line of code and the compiler error.
g_pDDPal = DDLoadPalette(g_pDD, szTiles);
error C2664: ''DDLoadPalette'' : cannot convert parameter 1 from ''struct IDirectDraw7 *'' to ''struct IDirectDraw *''
I think it is important to note that I have g_pDD (DD object) defined as LPDIRECTDRAW. This is the only error in the program and I basically copied all this stuff from the MS DX examples. What am I overlooking here?
No signature files!!! =)
NO NO! I have g_pDD (Direct Draw Object) defined as LPDIRECTDRAW7 I goofed in the above post.
--Thanks again!
--Thanks again!
No signature files!!! =)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement