Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 496553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:41:49+00:00 2026-05-13T05:41:49+00:00

I’m working on a legacy COM C++ project that makes use of system hungarian

  • 0

I’m working on a legacy COM C++ project that makes use of system hungarian notation. Because it’s maintenance of legacy code, the convention is to code in the original style it was written in – our newer code isn’t coded this way. So I’m not interested in changing that standard or having a a discussion of our past sins =)

Is there an online cheat-sheet available out there for systems hungarian notation?

The best I can find thus far is a pre stack-overflow discussion post, but it doesn’t quite have everything I’ve needed in the past. Does anyone have any other links?

(making this community wiki in the hope this becomes a self populating list)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T05:41:50+00:00Added an answer on May 13, 2026 at 5:41 am

    If this is for a legacy COM project, you’ll probably want to follow Microsoft’s Hungarian Notation specifications, which are documented on MSDN.

    Note that this is Apps Hungarian, i.e. the “good” kind of Hungarian Notation. Systems Hungarian is the “bad” kind, where names are prefixed with their compiler types, e.g. i for int.

    Tables from the MSDN article

    Table 1. Some examples for procedure names

    Name          Description
    
    InitSy        Takes an sy as its argument and initializes it.
    
    OpenFn        fn is the argument. The procedure will "open" the fn. No value is returned.
    
    FcFromBnRn    Returns the fc corresponding to the bn,rn pair given. (The names cannot tell us what the types sy, fn, fc, and so on, are.)
    

    The following is a list of standard type constructions. (X and Y stand for arbitrary tags. According to standard punctuation, the actual tags are lowercase.)

    Table 2. Standard type constructions

    pX      Pointer to X.
    
    dX      Difference between two instances of type X. X + dX is of type X.
    
    cX      Count of instances of type X.
    
    mpXY    An array of Ys indexed by X. Read as "map from X to Y."
    
    rgX     An array of Xs. Read as "range X." The indices of the array are called:
    
    iX      index of the array rgX.
    
    dnX     (rare) An array indexed by type X. The elements of the array are called:
    
    eX      (rare) Element of the array dnX.
    
    grpX    A group of Xs stored one after another in storage. Used when the X elements are of variable size and standard array indexing would not apply. Elements of the group must be referenced by means other then direct indexing. A storage allocation zone, for example, is a grp of blocks.
    
    bX      Relative offset to a type X. This is used for field displacements in a data structure with variable size fields. The offset may be given in terms of bytes or words, depending on the base pointer from which the offset is measured.
    
    cbX     Size of instances of X in bytes.
    
    cwX     Size of instances of X in words.
    

    The following are standard qualifiers. (The letter X stands for any type tag. Actual type tags are in lowercase.)

    Table 3. Standard qualifiers

    XFirst    The first element in an ordered set (interval) of X values.
    
    XLast     The last element in an ordered set of X values. XLast is the upper limit of a closed interval, hence the loop continuation condition should be: X <= XLast.
    
    XLim      The strict upper limit of an ordered set of X values. Loop continuation should be: X < XLim.
    
    XMax      Strict upper limit for all X values (excepting Max, Mac, and Nil) for all other X: X < XMax. If X values start with X=0, XMax is equal to the number of different X values. The allocated length of a dnx vector, for example, will be typically XMax.
    
    XMac      The current (as opposed to constant or allocated) upper limit for all X values. If X values start with 0, XMac is the current number of X values. To iterate through a dnx array, for example:
              for x=0 step 1 to xMac-1 do ... dnx[x] ...
              or
              for ix=0 step 1 to ixMac-1 do ... rgx[ix] ...
    
    XNil      A distinguished Nil value of type X. The value may or may not be 0 or -1.
    
    XT        Temporary X. An easy way to qualify the second quantity of a given type in a scope.
    

    Table 4. Some common primitive types

    f     Flag (Boolean, logical). If qualifier is used, it should describe the true state of the flag. Exception: the constants fTrue and fFalse.
    
    w     Word with arbitrary contents.
    
    ch    Character, usually in ASCII text.
    
    b     Byte, not necessarily holding a coded character, more akin to w. Distinguished from the b constructor by the capital letter of the qualifier in immediately following.
    
    sz    Pointer to first character of a zero terminated string.
    
    st    Pointer to a string. First byte is the count of characters cch.
    
    h     pp (in heap).
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am trying to understand how to use SyndicationItem to display feed which is
I've got a string that has curly quotes in it. I'd like to replace
I have a small JavaScript validation script that validates inputs based on Regex. I
I want use html5's new tag to play a wav file (currently only supported
I have this code to decode numeric html entities to the UTF8 equivalent character.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.