Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. C/C++ files with "Ex" suffixes

C/C++ files with "Ex" suffixes

Scheduled Pinned Locked Moved C / C++ / MFC
c++questionannouncement
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    david21114
    wrote on last edited by
    #1

    I noticed in the microsoft windows library they had two versions of what i assumed with similar files. filename.h/filename.cpp and filenameEx.h/filenameEx.cpp Anyone know how this "Ex" suffix is used? and what the relationship if any between the non-Ex and the "Ex" version? Kind regards, David

    G D _ 3 Replies Last reply
    0
    • D david21114

      I noticed in the microsoft windows library they had two versions of what i assumed with similar files. filename.h/filename.cpp and filenameEx.h/filenameEx.cpp Anyone know how this "Ex" suffix is used? and what the relationship if any between the non-Ex and the "Ex" version? Kind regards, David

      G Offline
      G Offline
      Garth J Lancaster
      wrote on last edited by
      #2

      it really depends on the company/implementation - I doubt there's any 'standard' meaning, eg 'Example', 'Extension' - the only way to know for sure is a side-by-side comparison using [insert name of your favourite diff/compare tool here]

      1 Reply Last reply
      0
      • D david21114

        I noticed in the microsoft windows library they had two versions of what i assumed with similar files. filename.h/filename.cpp and filenameEx.h/filenameEx.cpp Anyone know how this "Ex" suffix is used? and what the relationship if any between the non-Ex and the "Ex" version? Kind regards, David

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        david21742 wrote:

        Anyone know how this "Ex" suffix is used? and what the relationship if any between the non-Ex and the "Ex" version?

        I always interpreted it as an "extended" version.

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

        1 Reply Last reply
        0
        • D david21114

          I noticed in the microsoft windows library they had two versions of what i assumed with similar files. filename.h/filename.cpp and filenameEx.h/filenameEx.cpp Anyone know how this "Ex" suffix is used? and what the relationship if any between the non-Ex and the "Ex" version? Kind regards, David

          _ Offline
          _ Offline
          _Superman_
          wrote on last edited by
          #4

          Basically it stands for an extended version. Microsoft follows 2 conventions for extensions or newer versions of files / APIs / classes. MFC has a CDialog class which is now extended to CDialogEx. CDialogEx exists in a file called AfxDialogEx.h There are several extended versions of APIs that follow this convention - CreateWindow - CreateWindowEx RegOpenKey - RegOpenKeyEx The other convention that is followed is to add the numbers 2, 3, 4 ... to the end of the name. Files that follow this convention are - AfxPriv.h, AfxPriv2.h AfxCmn.inl, AfxCmn2.inl, AfxCmn3.inl This convention is followed by the COM interfaces - IClassFactory, IClassFactory2 IPersistFolder, IPersistFolder2, IPersistFolder3

          «_Superman_»  _I love work. It gives me something to do between weekends.

          _Microsoft MVP (Visual C++) (October 2009 - September 2013)

          Polymorphism in C

          D 1 Reply Last reply
          0
          • _ _Superman_

            Basically it stands for an extended version. Microsoft follows 2 conventions for extensions or newer versions of files / APIs / classes. MFC has a CDialog class which is now extended to CDialogEx. CDialogEx exists in a file called AfxDialogEx.h There are several extended versions of APIs that follow this convention - CreateWindow - CreateWindowEx RegOpenKey - RegOpenKeyEx The other convention that is followed is to add the numbers 2, 3, 4 ... to the end of the name. Files that follow this convention are - AfxPriv.h, AfxPriv2.h AfxCmn.inl, AfxCmn2.inl, AfxCmn3.inl This convention is followed by the COM interfaces - IClassFactory, IClassFactory2 IPersistFolder, IPersistFolder2, IPersistFolder3

            «_Superman_»  _I love work. It gives me something to do between weekends.

            _Microsoft MVP (Visual C++) (October 2009 - September 2013)

            Polymorphism in C

            D Offline
            D Offline
            david21114
            wrote on last edited by
            #5

            thank you very much. i had to name something where it was in appropriate to overload, and I couldn't think of an appropriate name. i saw something in microsoft's thread or mutex library that used that naming convention. I should have realized Ex meant "extended", duh. Kind regards, :java:

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups