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:Code:DirectDrawCreateEx(NULL, &lpDD, IID_IDirectDraw7, NULL);
Any ideas?Code:directdraw.c(5) : error C2115: 'function' : incompatible types directdraw.c(5) : warning C4024: 'DirectDrawCreateEx' : different types for formal and actual parameter 3
BTW, I've included ddraw.h, and I've added the ddraw.lib and dxguid.lib files.


Reply With Quote





