DirectDrawCreateEx() error
I''m getting an error for this line:
ddrval = DirectDrawCreateEx(NULL, &lpDD, IID_IDirectDraw7, NULL)
cannot convert parameter 2 from ''LPDIRECTDRAW7*__w64'' to
''LPVOID*''
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);
ddrval = DirectDrawCreateEx(NULL, (void**)&lpDD, IID_IDirectDraw7, NULL);
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement