🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

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

Started by
2 comments, last by cclements 24 years, 5 months 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!!! =)
Advertisement
NO NO! I have g_pDD (Direct Draw Object) defined as LPDIRECTDRAW7 I goofed in the above post.

--Thanks again!
No signature files!!! =)
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