Click here to Skip to main content
15,891,184 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to config DirectX SDK in VC2005 Pin
kcynic15-Jul-07 5:57
kcynic15-Jul-07 5:57 
GeneralRe: How to config DirectX SDK in VC2005 Pin
Mark Salsbery15-Jul-07 6:34
Mark Salsbery15-Jul-07 6:34 
GeneralRe: How to config DirectX SDK in VC2005 Pin
Hamid_RT15-Jul-07 7:17
Hamid_RT15-Jul-07 7:17 
QuestionHow to create a browse file dialog which can select files longer then MAX_PATH Pin
Axter15-Jul-07 5:18
professionalAxter15-Jul-07 5:18 
AnswerRe: How to create a browse file dialog which can select files longer then MAX_PATH Pin
KevinXLi15-Jul-07 6:21
KevinXLi15-Jul-07 6:21 
GeneralRe: How to create a browse file dialog which can select files longer then MAX_PATH Pin
Axter15-Jul-07 12:31
professionalAxter15-Jul-07 12:31 
AnswerRe: How to create a browse file dialog which can select files longer then MAX_PATH Pin
Mark Salsbery15-Jul-07 6:39
Mark Salsbery15-Jul-07 6:39 
GeneralRe: How to create a browse file dialog which can select files longer then MAX_PATH Pin
Axter15-Jul-07 12:32
professionalAxter15-Jul-07 12:32 
I've already tried using GetOpenFileName, and I gave it required buffer size which was greater then MAX_PATH, but it still failed.
Here's example code:
void TestLongFileBrowse()
{
TCHAR acPath[2048] = _T("\0");

OPENFILENAME ofn;
ZeroMemory(&ofn,sizeof(OPENFILENAME));

ofn.lStructSize = sizeof(OPENFILENAME);
ofn.nMaxFile = 2048;
ofn.lpstrFile = acPath;

if (GetOpenFileName(&ofn)) {

printf("Path length: %d\n", _tcslen(ofn.lpstrFile));
printf("Path: %S\n", ofn.lpstrFile);

} else printf("CommDlgExtendedError(): %d\n");

}


Top ten member of C++ Expert Exchange.
http://www.experts-exchange.com/Cplusplus

GeneralRe: How to create a browse file dialog which can select files longer then MAX_PATH Pin
Michael Dunn15-Jul-07 14:12
sitebuilderMichael Dunn15-Jul-07 14:12 
GeneralRe: How to create a browse file dialog which can select files longer then MAX_PATH Pin
Axter15-Jul-07 16:34
professionalAxter15-Jul-07 16:34 
AnswerRe: How to create a browse file dialog which can select files longer then MAX_PATH [OT] Pin
David Crow16-Jul-07 4:37
David Crow16-Jul-07 4:37 
AnswerRe: How to create a browse file dialog which can select files longer then MAX_PATH Pin
David Crow16-Jul-07 4:47
David Crow16-Jul-07 4:47 
QuestionExceptions in destructors Pin
tom groezer15-Jul-07 4:44
tom groezer15-Jul-07 4:44 
AnswerRe: Exceptions in destructors Pin
#realJSOP15-Jul-07 5:36
mve#realJSOP15-Jul-07 5:36 
GeneralRe: Exceptions in destructors Pin
Paul Conrad15-Jul-07 5:41
professionalPaul Conrad15-Jul-07 5:41 
GeneralRe: Exceptions in destructors Pin
CPallini15-Jul-07 6:07
mveCPallini15-Jul-07 6:07 
GeneralRe: Exceptions in destructors Pin
Mark Salsbery15-Jul-07 6:40
Mark Salsbery15-Jul-07 6:40 
GeneralRe: Exceptions in destructors Pin
#realJSOP15-Jul-07 8:47
mve#realJSOP15-Jul-07 8:47 
GeneralRe: Exceptions in destructors Pin
bob1697215-Jul-07 11:30
bob1697215-Jul-07 11:30 
GeneralRe: Exceptions in destructors Pin
Mark Salsbery15-Jul-07 12:15
Mark Salsbery15-Jul-07 12:15 
GeneralRe: Exceptions in destructors Pin
Paul Conrad15-Jul-07 14:12
professionalPaul Conrad15-Jul-07 14:12 
GeneralRe: Exceptions in destructors Pin
ThatsAlok16-Jul-07 0:44
ThatsAlok16-Jul-07 0:44 
GeneralRe: Exceptions in destructors Pin
Mark Salsbery16-Jul-07 5:10
Mark Salsbery16-Jul-07 5:10 
GeneralRe: Exceptions in destructors Pin
ThatsAlok16-Jul-07 7:13
ThatsAlok16-Jul-07 7:13 
GeneralRe: Exceptions in destructors Pin
Mark Salsbery16-Jul-07 7:21
Mark Salsbery16-Jul-07 7:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.