We help IT Professionals succeed at work.

How to change C++ Const to VB Const

orbitaltech
orbitaltech asked
on
328 Views
Last Modified: 2010-05-02
I need to change some C++ constants to VB constants (Which do not appear in the API32.text)

Ex:
In C++ CCS_Adjustable would be defined as

 #define CCS_ADJUSTABLE   0x00000020L

In VB It would be
 Public Const CCS_Adjustable = &H??????

How do I perform the conversion? I need to do this to many constants
Comment
Watch Question

Top Expert 2005
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
That's what i had done. But is that "L" needed? What does it reference?

Top Expert 2005

Commented:
L means Long in C

If you wish, you could write:
Public Const CCS_Adjustable = &H20&

Which specifies that CCS_Adjustable is a Long.

Author

Commented:
My hunch exactly.. Thanks for your help
Top Expert 2005

Commented:
You're welcome. :-)
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.