Declare Const X AS UInteger = 0x9908bodfU

Posted on 2005-03-27
Medium Priority
Last Modified: 2012-05-07
I've got these in C#:

      private const uint MATRIX_A = 0x9908b0dfU;

I want them in VB.NET...

I know the basic syntax differences, but these don't work.

      private const MATRIX_A as UInteger = 0x9908b0dfU
Question by:aubk
  • 2
LVL 44

Expert Comment

ID: 13641577
VB.NET does NOT support UNSIGNED INTEGERS (which is what the U suffix on the Hex notation indicates)

C# does support UNSIGNED integers - one of the key differences between VB.NET and C#

LVL 48

Accepted Solution

AlexFM earned 200 total points
ID: 13642096
Const MATRIX_A As Integer = &H9908B0DF
LVL 44

Expert Comment

ID: 13643260
you shouyld be aware that your constant MATRIX_A will show as a NEGATIVE value, if that makes any difference in your code.


Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question