Hendricks266

DirectX function calls from hell, part 1 - clang edition

Nov 4th, 2012
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.30 KB | None | 0 0
  1. src/winlayer.c:1128:49: error: reference to type 'const GUID' (aka 'const _GUID') could not bind to an rvalue of type 'GUID *' (aka '_GUID *')
  2. result = IDirectInput7_CreateDeviceEx(lpDI, &guidDevs, &IID_IDirectInputDevice7, (void *)&dev, NULL);
  3. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4. c:/MinGW/sdks/dx80_mgw/include\dinput.h:2568:69: note: expanded from macro 'IDirectInput7_CreateDeviceEx'
  5. #define IDirectInput7_CreateDeviceEx(p,a,b,c,d) (p)->CreateDeviceEx(a,b,c,d)
  6. ^
  7. c:/MinGW/sdks/dx80_mgw/include\dinput.h:2531:44: note: passing argument to parameter here
  8. STDMETHOD(CreateDeviceEx)(THIS_ REFGUID,REFIID,LPVOID *,LPUNKNOWN) PURE;
  9. ^
  10. src/winlayer.c:1132:54: error: reference to type 'const IID' (aka 'const _GUID') could not bind to an rvalue of type 'const GUID *' (aka 'const _GUID *')
  11. result = IDirectInputDevice7_QueryInterface(dev, &IID_IDirectInputDevice7, (LPVOID *)&dev2);
  12. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13. c:/MinGW/sdks/dx80_mgw/include\dinput.h:1742:71: note: expanded from macro 'IDirectInputDevice7_QueryInterface'
  14. #define IDirectInputDevice7_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
  15. ^
  16. c:/MinGW/sdks/dx80_mgw/include\dinput.h:1663:44: note: passing argument to parameter 'riid' here
  17. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
  18. ^
  19. src/winlayer.c:2266:62: error: reference to type 'const IID' (aka 'const _GUID') could not bind to an rvalue of type 'const GUID *' (aka 'const _GUID *')
  20. hr = IDirectDrawSurface_QueryInterface(lpDDSPrimary, &IID_IDirectDrawGammaControl, (LPVOID)&gam);
  21. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22. c:/MinGW/sdks/dx80_mgw/include\ddraw.h:1518:77: note: expanded from macro 'IDirectDrawSurface_QueryInterface'
  23. #define IDirectDrawSurface_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
  24. ^
  25. c:/MinGW/sdks/dx80_mgw/include\ddraw.h:1441:45: note: passing argument to parameter 'riid' here
  26. STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE;
  27. ^
  28. src/winlayer.c:2338:62: error: reference to type 'const IID' (aka 'const _GUID') could not bind to an rvalue of type 'const GUID *' (aka 'const _GUID *')
  29. hr = IDirectDrawSurface_QueryInterface(lpDDSPrimary, &IID_IDirectDrawGammaControl, (LPVOID)&gam);
  30. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  31. c:/MinGW/sdks/dx80_mgw/include\ddraw.h:1518:77: note: expanded from macro 'IDirectDrawSurface_QueryInterface'
  32. #define IDirectDrawSurface_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
  33. ^
  34. c:/MinGW/sdks/dx80_mgw/include\ddraw.h:1441:45: note: passing argument to parameter 'riid' here
  35. STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE;
  36. ^
Advertisement
Add Comment
Please, Sign In to add comment