Option Strict Error on Const declaration.....

  • Thread starter Thread starter Smith Guy
  • Start date Start date
S

Smith Guy

After declaring

Option Strict On

Iam getting the error on.

Private Const ERROR_SUCCESS = &H0

What is the correction needed for the above statement.

..Net Framework 1.1.

Thanks,

Smith
 
Hi,

Private Const ERROR_SUCCESS as integer = &H0

Ken
----------------
After declaring

Option Strict On

Iam getting the error on.

Private Const ERROR_SUCCESS = &H0

What is the correction needed for the above statement.

..Net Framework 1.1.

Thanks,

Smith
 
Smith Guy said:
Option Strict On

Iam getting the error on.

Private Const ERROR_SUCCESS = &H0

What is the correction needed for the above statement.

\\\
Private Const ERROR_SUCCESS As Int32 = &H0
///
 
Herfried K. Wagner said:
\\\
Private Const ERROR_SUCCESS As Int32 = &H0
///

Herfried,

Probably been asked before (apologies), but why do you favour
"Int32" over "Integer"? Is it just for clarity or are Our Friends in
Redmond planning to "upgrade" Integer to its 64-bit equivalent
any time soon?

TIA,
Phill W.
 
Phill. W said:
Probably been asked before (apologies), but why do you favour
"Int32" over "Integer"?

I prefer to use the names of the types in the .NET Framework when dealing
with unmanaged code. It's only my personal preference.
Is it just for clarity or are Our Friends in
Redmond planning to "upgrade" Integer to its 64-bit equivalent
any time soon?

'Integer' will remain 32-bit even in the 64-bit world.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top