Thread: Prefixing MS varibles

  1. #1
    Registered User
    Join Date
    Feb 2002

    Prefixing MS varibles

    MS recomend that I use a prefix for my variables like so

    CString m_csMyString;
    double m_dValue;
    CObjectArray oaMyArray;

    and so on. Does anyone know if there is a list over all prefixes somewhere? What is CRect and CPoint recomended to be? I would guess

    CRect crClientRect;
    CPoint cpCursor;

  2. #2
    the Corvetter
    Join Date
    Sep 2001
    Ever hear of Hungarian Notation? It's explained most any programming facility...
    1978 Silver Anniversary Corvette

  3. #3
    Registered User
    Join Date
    Feb 2002

    hungarian notation

    Use the MFC functions for instance type in the function and study the declarations of their functions... also as in the previous message most MFC books explain this naming style .....
    --true programmer's don't comment--
    --programmer wannabes complain about it--

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Speed test result
    By audinue in forum C Programming
    Replies: 4
    Last Post: 07-07-2008, 05:18 AM
  2. Heapsort
    By xENGINEERx in forum C Programming
    Replies: 2
    Last Post: 03-30-2008, 07:17 PM
  3. Generic heapsort
    By Sephiroth1109 in forum C Programming
    Replies: 15
    Last Post: 12-07-2007, 06:14 PM
  4. Ping
    By ZakkWylde969 in forum Tech Board
    Replies: 5
    Last Post: 09-23-2003, 12:28 PM
  5. The Timing is incorret
    By Drew in forum C++ Programming
    Replies: 5
    Last Post: 08-28-2003, 04:57 PM