Thread overview
Long has no effect in expression (0)
Nov 02, 2009
Sam Hu
Nov 02, 2009
bearophile
November 02, 2009
Given below code segment under DMD1.050 :

class COM : OS
{
    .......
   //public static const int OLEWHICHMK_OBJREL = 2;
   public static const int S_FALSE = 1;
   public static const int S_OK = 0 ; //Error ocurred here!!
}

Got the subjected error message.What does this mean?

Thanks for your help in advance.

Regards,
Sam
November 02, 2009
Sam Hu Wrote:

It seems the error is not located in the code you have shown: http://codepad.org/ti7SaAtA

So I think you have to show more code.
Try to create a reduced case that shows the same error.

Bye,
bearophile
November 02, 2009
bearophile wrote:
> Sam Hu Wrote:
> 
> It seems the error is not located in the code you have shown:
> http://codepad.org/ti7SaAtA
> 
> So I think you have to show more code.
> Try to create a reduced case that shows the same error.


You won't necessarily be able to reproduce the error with codepad.org anyway, since it's running DMD 1.026, while Sam says he is using DMD 1.050.

-Lars