Structs and Interfaces in COM Bindings
Adam Wilson via Digitalmars-d
digitalmars-d at puremagic.com
Sun May 18 18:27:00 PDT 2014
On Sun, 18 May 2014 17:48:45 -0700, Adam Wilson <flyboynw at gmail.com> wrote:
> Addendum:
>
> In the module Structs and Interfaces are wrapped with static if blocks
> in the following manner:
>
> static if(DX110)
> {
> //Enumerations
> }
> static if(DX111) { //...}
> static if(DX112) { //...}
>
> static if(DX110)
> {
> //Structs
> }
> static if(DX111) { //...}
> static if(DX112) { //...}
>
> static if(DX110)
> {
> //Interfaces
> }
> static if(DX111) { //...}
> static if(DX112) { //...}
>
> Could this be causing the problem, even if the struct and interface have
> matching static if qualifiers (in this case: DX110)?
>
An interesting note: If I use a struct or enum from further up the file in
an interface it compiles fine, but if I use an interface further down the
file in a struct, it throws an error.
--
Adam Wilson
GitHub/IRC: LightBender
Aurora Project Coordinator
More information about the Digitalmars-d
mailing list