Home > Back-end >  To share code: OpenDialog open file limited number of problems
To share code: OpenDialog open file limited number of problems

Time:10-02

Yes, it is worth collecting

CodePudding user response:

Writing is good!

CodePudding user response:

The to mabaoyes

In theory can also be used in the CB6, just I didn't install CB6 test.
Mainly GetOpenFileName this API problem, under the Windows 7 be mended.
My environment is CB2010 + XP sp3

CodePudding user response:

Wow,,,,,,

CodePudding user response:

Strong oh

CodePudding user response:

To force!

CodePudding user response:

Sweat! Have to be the BS

CodePudding user response:

Very good!

CodePudding user response:

A small BBS address: http://rayyu.5d6d.com/thread-9444-1-1.html

CodePudding user response:

All good cow!!!!!!

CodePudding user response:

The cow!

CodePudding user response:

Thank you very much!!!!!!!!!!

CodePudding user response:

Good, good good study

CodePudding user response:

CBXE + XP sp2/sp3 testing works, add 2300 multiple files to the TMemo with TOpenDialog,

CodePudding user response:

Good, good,

CodePudding user response:

Writing is good

CodePudding user response:

Writing is good

CodePudding user response:

Writing is good!

CodePudding user response:

Good, good

CodePudding user response:

Writing is good!

CodePudding user response:

Said before is not very clear, complement, open file limit is not fixed, related to the length of the path, look at the API statement.
 BOOL GetOpenFileName (LPOPENFILENAME lpofn); 
Typedef struct tagOFN {//ofn
DWORD lStructSize;
The HWND hwndOwner;
HINSTANCE HINSTANCE,
LPCTSTR lpstrFilter;
LPTSTR lpstrCustomFilter;
DWORD nMaxCustFilter;
DWORD nFilterIndex;
LPTSTR lpstrFile;
DWORD nMaxFile;
LPTSTR lpstrFileTitle;
DWORD nMaxFileTitle;
LPCTSTR lpstrInitialDir;
LPCTSTR lpstrTitle;
DWORD Flags;
WORD nFileOffset;
WORD nFileExtension;
LPCTSTR lpstrDefExt;
DWORD lCustData;
LPOFNHOOKPROC lpfnHook;
LPCTSTR lpTemplateName;
} OPENFILENAME;

The nMaxFile all options are kept in the file path of the memory size.
TOpenFile call the function in multiple files are nMaxFile is 65519 bytes. So in XP system, there must be a limit. In Windows Vista and later system, while also calls the function, but is no longer use lpstrFile, is also a way of using directly from Shell to find files.

CodePudding user response:

The moderator is recommended, to learn

CodePudding user response:

43 the interpretation of the floor is very good,

CodePudding user response:

Thank you for the original poster! You solved a big problem to me!
  • Related