Link to home
Start Free TrialLog in
Avatar of orbitaltech
orbitaltech

asked on

How to change C++ Const to VB Const

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
ASKER CERTIFIED SOLUTION
Avatar of Erick37
Erick37
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of orbitaltech
orbitaltech

ASKER

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

L means Long in C

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

Which specifies that CCS_Adjustable is a Long.
My hunch exactly.. Thanks for your help
You're welcome. :-)