[WinAPI] Problem with an interface...
Sascha Katzner
sorry.no at spam.invalid
Thu Nov 22 07:44:38 PST 2007
Stewart Gordon wrote:
> Most of the interface definitions don't have extern(Windows) in them.
> Are you sure it's right to have it here?
I think extern(Windows) is correct here.
BaseTyps.h:
> #define STDMETHODCALLTYPE __stdcall
> #define STDMETHOD(method) virtual COM_DECLSPEC_NOTHROW HRESULT STDMETHODCALLTYPE method
> #define STDMETHOD_(type,method) virtual COM_DECLSPEC_NOTHROW type STDMETHODCALLTYPE method
D3D10effect.h:
> DECLARE_INTERFACE(ID3D10EffectTechnique)
> {
> STDMETHOD_(BOOL, IsValid)(THIS) PURE;
> STDMETHOD(GetDesc)(THIS_ D3D10_TECHNIQUE_DESC *pDesc) PURE;
> STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByIndex)(THIS_ UINT Index) PURE;
> STDMETHOD_(ID3D10EffectVariable*, GetAnnotationByName)(THIS_ LPCSTR Name) PURE;
> STDMETHOD_(ID3D10EffectPass*, GetPassByIndex)(THIS_ UINT Index) PURE;
> STDMETHOD_(ID3D10EffectPass*, GetPassByName)(THIS_ LPCSTR Name) PURE;
> STDMETHOD(ComputeStateBlockMask)(THIS_ D3D10_STATE_BLOCK_MASK *pStateBlockMask) PURE;
> };
LLAP,
Sascha Katzner
More information about the Digitalmars-d
mailing list