BBC BASIC for Windows
Programming >> Graphics and Games >> MIDL_INTERFACE
http://bb4w.conforums.com/index.cgi?board=graphics&action=display&num=1263543489

MIDL_INTERFACE
Post by Michael Hutton on Jan 15th, 2010, 07:18am

I have been hoofing around DirectX and have come across a MIDL_INTERFACE defintion which I don't understand.

Code:
MIDL_INTERFACE("310d36a0-d2e7-4c0a-aa04-6a9d23b8886a") 


I have a 'feeling' that this is a special type of GUID and looking further found it seems to be equivalent to

Code:
struct __declspec(uuid("310d36a0-d2e7-4c0a-aa04-6a9d23b8886a")) __declspec(novtable) 
.

I couldn't seem to find a way of making this special type of IID, would any C code guru (Richard!) out there have any idea? I need the result (IID) to pass in a SYS call, specifically,

IDXGISwapChainInterface::GetBuffer in DirectX10.

Michael