the problem is the d3d enumdevices method. I followed pretty much my book's directions, tried many tutorials, etc. my callback simply incrementes a global int which i later check and find to be zero. i have d3d drivers installed, samples and games are rolling
here's some code:
lpdd->QueryInterface(IID_IDirect3D,(void **)&lpd3d)
lpd3d->EnumDevices(enumDeviceFunc,NULL)
HRESULT WINAPI enumDeviceFunc
(LPGUID lpGuid,LPSTR lpDeviceDescription,
LPSTR lpDeviceName, LPD3DDEVICEDESC lpHW,
LPD3DDEVICEDESC lpSW, LPVOID lpContext)
{
enumcounter++;
return (D3DENUMRET_OK);
}
enumcounter is zero aft enumert, but enumdevices doesn't fail either (i check that with FAILED). this is driving me nuts! i must be missing some d3d specifics like #defines... no clue.
Thanks for any help, Alex.