Click here to Skip to main content
16,012,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Non-MFC dialog hyperlinks Pin
IGx8929-Jan-02 6:28
IGx8929-Jan-02 6:28 
QuestionNon-MFC property sheets? Pin
IGx8929-Jan-02 5:51
IGx8929-Jan-02 5:51 
AnswerRe: Non-MFC property sheets? Pin
Ravi Bhavnani29-Jan-02 6:20
professionalRavi Bhavnani29-Jan-02 6:20 
GeneralRe: Non-MFC property sheets? Pin
IGx8929-Jan-02 6:20
IGx8929-Jan-02 6:20 
GeneralRe: Non-MFC property sheets? Pin
Ravi Bhavnani29-Jan-02 6:37
professionalRavi Bhavnani29-Jan-02 6:37 
GeneralRe: Non-MFC property sheets? Pin
IGx8929-Jan-02 6:36
IGx8929-Jan-02 6:36 
GeneralRe: Non-MFC property sheets? Pin
Ravi Bhavnani29-Jan-02 6:54
professionalRavi Bhavnani29-Jan-02 6:54 
GeneralCFile::GetFileTitle() broken. Pin
Jamie Hale29-Jan-02 5:20
Jamie Hale29-Jan-02 5:20 
I'm using NT with the latest service packs (both NT and Visual Studio).

Anyone else noticed this? According to MSDN, GetFileTitle() is supposed to return just the filename without the extension. If you open "wankitywank.txt" and then call GetFileTitle(), it should spit out "wankitywank". It even says so explicitly with an example (not the same filename Smile | :) )

Trouble is, that's not what it does. GetFileTitle() returns the same as GetFileName(). Why are they lying to me?! Cry | :((

CFile f;
f.Open("someexistingfile.txt", CFile::modeRead);
cout << (LPCTSTR) f.GetFileTitle() << endl;
cout << (LPCTSTR) f.GetFileName() << endl;



J
GeneralRe: CFile::GetFileTitle() broken. Pin
Joaquín M López Muñoz29-Jan-02 6:01
Joaquín M López Muñoz29-Jan-02 6:01 
GeneralRe: CFile::GetFileTitle() broken. Pin
Jamie Hale29-Jan-02 6:16
Jamie Hale29-Jan-02 6:16 
GeneralRe: CFile::GetFileTitle() broken. Pin
Jon Hulatt29-Jan-02 6:45
Jon Hulatt29-Jan-02 6:45 
GeneralRe: CFile::GetFileTitle() broken. Pin
Ravi Bhavnani29-Jan-02 6:57
professionalRavi Bhavnani29-Jan-02 6:57 
GeneralRe: CFile::GetFileTitle() broken. Pin
Jamie Hale29-Jan-02 7:30
Jamie Hale29-Jan-02 7:30 
GeneralRe: CFile::GetFileTitle() broken. Pin
Michael Dunn29-Jan-02 13:45
sitebuilderMichael Dunn29-Jan-02 13:45 
GeneralRe: CFile::GetFileTitle() broken. Pin
Michael Dunn29-Jan-02 8:40
sitebuilderMichael Dunn29-Jan-02 8:40 
GeneralRe: CFile::GetFileTitle() broken. Pin
Jamie Hale29-Jan-02 10:00
Jamie Hale29-Jan-02 10:00 
GeneralRe: CFile::GetFileTitle() broken. Pin
Michael Dunn29-Jan-02 10:16
sitebuilderMichael Dunn29-Jan-02 10:16 
GeneralRe: CFile::GetFileTitle() broken. Pin
Jamie Hale29-Jan-02 11:09
Jamie Hale29-Jan-02 11:09 
GeneralRe: CFile::GetFileTitle() broken. Pin
Michael Dunn29-Jan-02 13:47
sitebuilderMichael Dunn29-Jan-02 13:47 
QuestionAutoupdate? Pin
AAntix29-Jan-02 5:10
AAntix29-Jan-02 5:10 
GeneralAnimated GIF's Pin
Adrian Metcalfe29-Jan-02 5:02
Adrian Metcalfe29-Jan-02 5:02 
GeneralRe: Animated GIF's Pin
Joaquín M López Muñoz29-Jan-02 5:11
Joaquín M López Muñoz29-Jan-02 5:11 
GeneralOnCancel Pin
ClayMoney29-Jan-02 3:33
ClayMoney29-Jan-02 3:33 
GeneralRe: OnCancel Pin
567890123429-Jan-02 4:02
567890123429-Jan-02 4:02 
GeneralCustom window like sonork messenger Pin
29-Jan-02 3:17
suss29-Jan-02 3:17 

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.