Skip to main content
gamedev.net
🔒 Locked

DirectDrawCreateEx error

Started by Yerpen 1 reply 1.6k views
Original Post
Yerpen
Yerpen
I'm trying to convert my directdraw functions from c++ to c. But I get this errors: error C2440: 'function' : cannot convert from 'const GUID' to 'const IID *const ' warning C4024: 'DirectDrawCreateEx' : different types for formal and actual parameter 3 coming from this line: DirectDrawCreateEx(NULL,(void**)&lpdd,IID_IDirectDraw7,NULL) Now this function works fine in c++, but how do I implement this function in c?
don
don
Modify the line to this:

DirectDrawCreateEx (NULL, (void**)&lpdd, &IID_IDirectDraw7, NULL);

Yerpen
Yerpen
Thanks alot.. that worked!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.