Probably because Hexadecimal Integer Literals in C# are defined as "0x"
followed by a hexadecimal constant. In C#, &H100 is the unary operator that
returns the "address of" the variable "H100", which you apparently haven't
defined as a variable. C# has a different syntax from VB.
Thanks,
Michael C., MCDBA
"Darryn Ross" <da****@datawave.com.au> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Hi
Why can't i assign the following value to a integer constant?
private const int WM_KEYDOWN = &H100 ;
the error message i am getting is C:\Dev\Cls.cs(99): The name 'H100' does
not exist in the class or namespace 'MyDLL.MyClass'
Regards
Darryn