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. OPENFILENAME... not defined in my commdlg.h ??! Anyone could check in their .h file?

OPENFILENAME... not defined in my commdlg.h ??! Anyone could check in their .h file?

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studioquestion
3 Posts 2 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.
  • A Offline
    A Offline
    andreir23
    wrote on last edited by
    #1

    OPENFILENAME_SIZE_VERSION_400 is a constant used in OPENFILENAME structure (lStructSize member variable) but it seems it's nowhere in my PC including all .h files from Visual Studio. Whatever... I hope it's an exception and someone could tell me the numeric value for it so I can use it in my app. If you are so kind... :-) TNX!

    A 2 Replies Last reply
    0
    • A andreir23

      OPENFILENAME_SIZE_VERSION_400 is a constant used in OPENFILENAME structure (lStructSize member variable) but it seems it's nowhere in my PC including all .h files from Visual Studio. Whatever... I hope it's an exception and someone could tell me the numeric value for it so I can use it in my app. If you are so kind... :-) TNX!

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      OPENFILENAME_SIZE_VERSION_400 is defined in <commdlg.h> Here are couple different code snippets from <commdlg.h>

      ...
      #ifndef CDSIZEOF_STRUCT
      #define CDSIZEOF_STRUCT(structname, member)  (((int)((LPBYTE)(&((structname*)0)->member) - ((LPBYTE)((structname*)0)))) + sizeof(((structname*)0)->member))
      #endif
      ...
      #if (_WIN32_WINNT >= 0x0500)
      #define OPENFILENAME_SIZE_VERSION_400A  CDSIZEOF_STRUCT(OPENFILENAMEA,lpTemplateName)
      #define OPENFILENAME_SIZE_VERSION_400W  CDSIZEOF_STRUCT(OPENFILENAMEW,lpTemplateName)
      #ifdef UNICODE
      #define OPENFILENAME_SIZE_VERSION_400  OPENFILENAME_SIZE_VERSION_400W
      #else
      #define OPENFILENAME_SIZE_VERSION_400  OPENFILENAME_SIZE_VERSION_400A
      #endif // !UNICODE
      #endif // (_WIN32_WINNT >= 0x0500)
      ...
      

      Hope this helps, :)

      1 Reply Last reply
      0
      • A andreir23

        OPENFILENAME_SIZE_VERSION_400 is a constant used in OPENFILENAME structure (lStructSize member variable) but it seems it's nowhere in my PC including all .h files from Visual Studio. Whatever... I hope it's an exception and someone could tell me the numeric value for it so I can use it in my app. If you are so kind... :-) TNX!

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        I actually have two copies of <commdlg.h> One copy is in c:\Program Files\Microsoft SDK\include and the other is in c:\Program Files\Microsoft Visual Studio\VC98\Include. I did compare the two and found that there're not the same. I'm sure the reason why you're not finding the OPENFILENAME_SIZE_VERSION_400 constant. Try downloading the MIcrosoft Platform SDK Hope this helps, :)

        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