[WinAPI] Problem with an interface...

Stewart Gordon smjg_1998 at yahoo.com
Thu Nov 22 06:52:54 PST 2007


"Sascha Katzner" <sorry.no at spam.invalid> wrote in message 
news:fi3t6f$1009$1 at digitalmars.com...
> Hi,
>
> I'm not sure if this is a bug in the way D handles interfaces or if I
> misunderstand something. I was trying to translate the Direct3D 10
> headers for the Windows API project:
> http://www.dsource.org/projects/bindings/browser/trunk/win32/directx
>
> I have a Windows function (GetTechniqueByName), which returns a pointer
> to an interface (which in D results to a simple interface, because in D
> interfaces are allready reference types).
>
>> ID3D10EffectTechnique GetTechniqueByName(LPCSTR Name);
>>
>> interface ID3D10EffectTechnique {
>> extern(Windows) :
<snip>

Most of the interface definitions don't have extern(Windows) in them.  Are 
you sure it's right to have it here?

Stewart.

-- 
My e-mail address is valid but not my primary mailbox.  Please keep replies 
on the 'group where everybody may benefit. 




More information about the Digitalmars-d mailing list