How to use &H10

  • Thread starter Thread starter Marc Eggenberger
  • Start date Start date
M

Marc Eggenberger

Hi there.

With the API I often see declarations which look like:

const int HKEY_CURRENT_USER = &H80000001;

but when I enter this in my project (.NET 1.1) I get an

The Name H80000001 does not exist in the class or namespace?

Why is it always written like this but does not work with me?

Thanks for any help.
 
:))))))
If you are writing in C#, it's:

const int HKEY_... = 0x800...;

if it is VB.NET I guess it should look like this:

const HKEY_... as integer = &H800... (semicolon removed)

HTH,
Stoyan Damov
 
Back
Top