473,396 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

simple hex to ingeter constant question

How would i do this in VB.NET?

public const LVIF_IMAGE AS INT32 = 0x0002

that of course fails... but how do you get hex values like that assigned
into consts? thanks
Nov 20 '05 #1
2 3650
Hi,

In general replace the 0x with &H

public const LVIF_IMAGE AS INT32 = &H2

Ken
--------------------
"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
How would i do this in VB.NET?

public const LVIF_IMAGE AS INT32 = 0x0002

that of course fails... but how do you get hex values like that assigned
into consts? thanks

Nov 20 '05 #2
thanks! that was what i was looking for

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:OY*************@tk2msftngp13.phx.gbl...
Hi,

In general replace the 0x with &H

public const LVIF_IMAGE AS INT32 = &H2

Ken
--------------------
"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
How would i do this in VB.NET?

public const LVIF_IMAGE AS INT32 = 0x0002

that of course fails... but how do you get hex values like that assigned
into consts? thanks

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
by: lokman | last post by:
Hi, In the following code, can someone tell me the difference between *p++ and p++ ? I can see both achieve the same result. Thanks a lot !
51
by: Alan | last post by:
hi all, I want to define a constant length string, say 4 then in a function at some time, I want to set the string to a constant value, say a below is my code but it fails what is the correct...
8
by: Ross A. Finlayson | last post by:
I'm trying to write some C code, but I want to use C++'s std::vector. Indeed, if the code is compiled as C++, I want the container to actually be std::vector, in this case of a collection of value...
9
by: niclane | last post by:
Hi, I was reading section 5.5 of Ritchie and Kernighan and saw the following: " ..... char amessage = "now is the time"; char *pmessage = "now is the time";
6
by: Alfonso Morra | last post by:
Hi, I have a function declared thus: int foo( int, int ); In the definition, I want to have a variable that is expensive to create. I want to be able to save the state of this variable...
1
by: Geoff Pennington | last post by:
I've never done any graphics before and am experimenting. I tried to draw a circle using the graphics.DrawEllipse() method, something like this: DrawEllipse(myPen, 0,0,300,300). However, the...
5
by: kathy | last post by:
If in one of the header file, a constant is defined: const UINT UM_CAL_DONE = func(); and it is included in several other .cpp file. Does the func() excecuted many times? If it is included in...
13
by: hn.ft.pris | last post by:
Hi: I have the following simple program: #include<iostream> using namespace std; int main(int argc, char* argv){ const double L = 1.234; const int T = static_cast<const int>(L); int arr;
6
by: Giff | last post by:
Hi, I hope you can clear a doubt that is in my mind: the function: void food(const type* ptrToType); means that it should not modify the object pointed by the pointer, or merely the...
8
by: Jaco Naude | last post by:
Hi I've been struggling with something that should be very simple to solve... Basically, I get a const Obj* from a function and I need to send a pointer to this object to a function accepting...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.