Click here to Skip to main content
15,920,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to make Win32 application Singleton? Pin
TurboNext14-Mar-07 6:54
TurboNext14-Mar-07 6:54 
GeneralRe: How to make Win32 application Singleton? Pin
G Haranadh14-Mar-07 8:02
G Haranadh14-Mar-07 8:02 
GeneralRe: How to make Win32 application Singleton? Pin
Mark Salsbery14-Mar-07 8:05
Mark Salsbery14-Mar-07 8:05 
AnswerRe: How to make Win32 application Singleton? Pin
Roger Stoltz14-Mar-07 6:53
Roger Stoltz14-Mar-07 6:53 
AnswerRe: How to make Win32 application Singleton? Pin
Ravi Bhavnani14-Mar-07 9:29
professionalRavi Bhavnani14-Mar-07 9:29 
AnswerRe: How to make Win32 application Singleton? Pin
ThatsAlok14-Mar-07 19:39
ThatsAlok14-Mar-07 19:39 
QuestionLocalisation/Internationalization from Header file Pin
ksrameshkanth14-Mar-07 3:46
ksrameshkanth14-Mar-07 3:46 
QuestionRecent file path length appears to be limited to 30 chars Pin
TClarke14-Mar-07 3:01
TClarke14-Mar-07 3:01 
Hi all,

I'm writing an application using MFC in VS2005. When I click on the File menu in the app I get an invalid argument exception. When I looked at the method throwing the exception (_AfxAbbreviateName in filelist.cpp) the exception was thrown by the line:

<br />
ENSURE(cchFullPath < cchMax);<br />


where cchFullPath is the string containg the path and cchMax is the limit to the width of the path that will be displayed. This value has a default value of 30.

The method appears to be intended to abbreviate a path with more characters than 30. However, unless I'm greatly mistaken it just throws an exception after 30 and so the list cannot be filled.

Has anyone seen this before and come up with a work around?

Thanks





Philosophy: The art of never getting beyond the concept of life.

QuestionCLSID Registry Pin
siddharthsan14-Mar-07 2:44
siddharthsan14-Mar-07 2:44 
AnswerRe: CLSID Registry Pin
ThatsAlok14-Mar-07 19:41
ThatsAlok14-Mar-07 19:41 
Question.Msg File should ask for password before opening in MS Outlook Pin
Ganesh N. Paul14-Mar-07 2:34
Ganesh N. Paul14-Mar-07 2:34 
QuestionHow to use CScrollbar for a window derived fromCWnd Pin
prithaa14-Mar-07 2:20
prithaa14-Mar-07 2:20 
AnswerRe: How to use CScrollbar for a window derived fromCWnd Pin
Hamid_RT14-Mar-07 3:21
Hamid_RT14-Mar-07 3:21 
AnswerRe: How to use CScrollbar for a window derived fromCWnd Pin
Mark Salsbery14-Mar-07 6:15
Mark Salsbery14-Mar-07 6:15 
GeneralRe: How to use CScrollbar for a window derived fromCWnd Pin
prithaa14-Mar-07 18:17
prithaa14-Mar-07 18:17 
GeneralRe: How to use CScrollbar for a window derived fromCWnd Pin
Mark Salsbery14-Mar-07 20:15
Mark Salsbery14-Mar-07 20:15 
QuestionSearch Multiple Occurences In RichEdit Pin
MIAN KAMRAN14-Mar-07 1:56
MIAN KAMRAN14-Mar-07 1:56 
AnswerRe: Search Multiple Occurences In RichEdit Pin
James R. Twine14-Mar-07 2:27
James R. Twine14-Mar-07 2:27 
Question.asm file Pin
vibindia14-Mar-07 1:13
vibindia14-Mar-07 1:13 
AnswerRe: .asm file Pin
Cedric Moonen14-Mar-07 1:52
Cedric Moonen14-Mar-07 1:52 
GeneralRe: .asm file Pin
vibindia14-Mar-07 2:14
vibindia14-Mar-07 2:14 
GeneralRe: .asm file Pin
CPallini14-Mar-07 2:20
mveCPallini14-Mar-07 2:20 
AnswerRe: .asm file Pin
CPallini14-Mar-07 2:01
mveCPallini14-Mar-07 2:01 
AnswerRe: .asm file Pin
krmed14-Mar-07 2:54
krmed14-Mar-07 2:54 
GeneralRe: .asm file i got it Pin
vibindia14-Mar-07 5:07
vibindia14-Mar-07 5:07 

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.