-
Jan 6th, 2009, 11:34 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] enums?
CSHARP Code:
public enum BtnFunc : byte
{
BFN_CLEAR = 0x1,
BFN_DEL_BTN = 0x0,
BFN_REQUEST = 0x3,
BFN_USER_CLEAR = 0x2
}
How would that be done in c++?
-
Jan 6th, 2009, 06:54 PM
#2
Re: enums?
Nearly identical:
Code:
enum BtnFunc : int
{
BFN_CLEAR = 0x1,
BFN_DEL_BTN = 0x0,
BFN_REQUEST = 0x3,
BFN_USER_CLEAR = 0x2
};
However, the ": int" part is Microsoft-specific I think, so drop it if you're not using VC++.
Last edited by David Anton; Jan 6th, 2009 at 11:03 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|