I've been trying for a while to get a simple DirectDraw program written in C to compile under MSVC++ 6.0. It refuses to compile this line:
It gives me the following errors:
Any ideas?
BTW, I've included ddraw.h, and I've added the ddraw.lib and dxguid.lib files.
Code:
DirectDrawCreateEx(NULL, &lpDD, IID_IDirectDraw7, NULL);
It gives me the following errors:
Code:
directdraw.c(5) : error C2115: 'function' : incompatible types
directdraw.c(5) : warning C4024: 'DirectDrawCreateEx' : different types for formal and actual parameter 3
Any ideas?
BTW, I've included ddraw.h, and I've added the ddraw.lib and dxguid.lib files.