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?
Posted on 2000-12-16 03:31:00 by sefth
I figured out my problem. An ADDR and a directx upgrade was all it took.
Posted on 2000-12-16 06:31:00 by sefth
Yep, GUIDS are always passed by reference.
Posted on 2000-12-16 21:26:00 by Ernie