Click here to Skip to main content
Click here to Skip to main content

Enum Viewer Dialog

By , 4 Oct 2001
 

Sample Image

Introduction

The enum viewer utility is used to read C/C++ include files and pull out the enums and their values. Enter an include file name into the Enum File edit control and press OK. This will a load list of enums found in the file into the Enums combo box. Select an enum from the combo box and its members and the values assigned to the enum member will be listed in the list control. There are two columns. The first column is used to display what the assigned enum value would be. The second column displays the enum text. The utility is useful when working with large enums and you are debugging an application and you are trying to determine what the enum is from a numeric value.

It currently handles enums of the following form:

enum TestEnum
{
   TEST_ENUM_1=100,
   TEST_ENUM_2,
   TEST_ENUM_3,
   TEST_ENUM_4=500,
   TEST_ENUM_5,
   TEST_ENUM_6,
};

enum TestEnum2 { TENUM1, TENUM2, TENUM3=200, TENUM4, };

enum TestEnum3 { TNUM1, TNUM2, TNUM3=200, TNUM4, };

enum {A = 1, B =2};
enum {C,D};

void f()
{
   enum {e, f, g = 20};
}

enum {H, I ,J};

It demonstrates the use of a recent file list in a MFC dialog based application.

History

5 Oct 2001 - updated source

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

PPresedo
Software Developer
United States United States
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralBUGSmemberRejeesh.T.S14 Aug '01 - 18:40 
GeneralRe: BUGSmemberAnonymous21 Aug '01 - 18:39 
I have submited bug fixes for the problems you have reported.Smile | :)
Question???memberRejeesh.T.S13 Aug '01 - 17:55 
Question???memberRejeesh.T.S13 Aug '01 - 1:16 
AnswerRe: ???memberCathy13 Aug '01 - 9:50 
GeneralRe: ???memberLarry Dobson8 Oct '01 - 12:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 5 Oct 2001
Article Copyright 2001 by PPresedo
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid