A Pointer To IUnknown?

Started by
20 comments, last by ph0ngwh0ng 20 years, 7 months ago
Thing is, it looks like you know nothing about COM..
Just declare your pointer using the right type, IDirect3D9 *, then query the interface. IDirect3D9 * will (like any COM component) inherit from IUnknown and implement it.
Advertisement
mputters, insults are pointless:

quote:Original post by ph0ngwh0ng
AP, I am developing with COm(DirectX is built on COM). All I needed was a way to test for an interface availability before calling its initialization function, like D3DCreate9 for IDirect3D9.

With this, I want to test that the user has the right interfaces installed before running the game i.e. intializing IDirect3D9.

But, I willl init IDirect3D9 with D3DCreate9 and if it returns NULL as a pointer, I''ll assume DX9 is not installed on the machine.

ph0ng^_^wh0ng


Thanks for looking anyway.





ph0ng^_^wh0ng
ph0ng^_^wh0ng

This topic is closed to new replies.

Advertisement