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