I need help trying to use QueryInterface to get a directdraw 4 interface. I am using the ddraw.inc from X-Calibre. This the call: invoke DirectDrawCreate, NULL, ADDR lpDD, NULL DDINVOKE QueryInterface, lpDD, IID_IDirectDraw4, ADDR lpDD4 I added this: EXTERNDEF C IID_IDirectDraw4:GUID to ddraw.inc. I am getting an invalid argument error. In C++ the call looks like this: lpDD->QueryInterface(IID_IDirectDraw4, (LPVOID *)&lpDD4) Can someone help me?
I figured out my problem. An ADDR and a directx upgrade was all it took.
Yep, GUIDS are always passed by reference.