Archived

This topic is now archived and is closed to further replies.

jimiwa

DirectDrawCreateEx() error

Recommended Posts

I''m getting an error for this line: ddrval = DirectDrawCreateEx(NULL, &lpDD, IID_IDirectDraw7, NULL) cannot convert parameter 2 from ''LPDIRECTDRAW7*__w64'' to ''LPVOID*''

Share this post


Link to post
Share on other sites
It''s saying it can''t turn an LPDIRECTDRAW* into a void**. Cast the &lpDD explicitly to void** by doing this:

ddrval = DirectDrawCreateEx(NULL, (void**)&lpDD, IID_IDirectDraw7, NULL);

Share this post


Link to post
Share on other sites