Advertisement

I know this is simple, but it's eating my lunch!

Started by January 12, 2000 04:55 PM
2 comments, last by cclements 25 years, 1 month ago
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!
No signature files!!! =)
Advertisement
try using the latest ddutil.cpp /.h files.
Well, you were correct, I was using the ddutil.cpp and ddutil.h from the 6.1 sdk. I compiled and ran great! Thanks. I knew it had to be something simple.
No signature files!!! =)

This topic is closed to new replies.

Advertisement