Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You <em>might</em> have a truly good reason to want your code to look familiar to other programmers who have learned MFC. If so, then you <em>could</em> emulate the conventions of the <a href="http://msdn.microsoft.com/en-us/library/482ck6x8(v=vs.80).aspx" rel="nofollow noreferrer">MFC Samples and Tutorials</a>, and do what they do...</p> <p>But MFC is a legacy library which originated very early, and times have changed. Microsoft's style guidelines now specifically say <strong>NOT</strong> to use Hungarian notation:</p> <p><a href="http://msdn.microsoft.com/en-us/library/ms229042.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ms229042.aspx</a></p> <p>That aside, rather than blindly following any particular document, it is probably better to evaluate each individual convention. For instance, when MFC samples make classes and have member variables, they start the name with <code>m_</code>. StackOverflow has questions about this particular idea and you can read about alternatives:</p> <p><a href="https://stackoverflow.com/questions/1228161/why-use-prefixes-on-member-variables-in-c-classes">Why use prefixes on member variables in C++ classes</a></p> <p>I'm more aligned with Qt's API Style Guidelines, and most of their conventions work for me:</p> <p><a href="http://doc.qt.nokia.com/qq/qq13-apis.html" rel="nofollow noreferrer">http://doc.qt.nokia.com/qq/qq13-apis.html</a></p> <p>Speaking of which, Qt is a nice C++ offering that has continued to evolve and mature. Blows MFC out of the water (completely) AND is cross-platform...</p> <p><a href="http://qt.nokia.com/products/developer-tools/" rel="nofollow noreferrer">http://qt.nokia.com/products/developer-tools/</a></p> <p>If you want to be locked in the Microsoft universe go for .NET and C#. That would be a step up, and you wouldn't be stuck with the MFC abandonware.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload