Click here to Skip to main content
15,919,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralNeed a help with CDialog and WM_QWERYENDSESSION Pin
Pavel Sokolov16-Aug-02 13:19
Pavel Sokolov16-Aug-02 13:19 
GeneralRe: Need a help with CDialog and WM_QWERYENDSESSION Pin
Daniel Ferguson16-Aug-02 21:05
Daniel Ferguson16-Aug-02 21:05 
GeneralRe: Need a help with CDialog and WM_QWERYENDSESSION Pin
Pavel Sokolov17-Aug-02 0:16
Pavel Sokolov17-Aug-02 0:16 
GeneralReal document in View Pin
RocardoS16-Aug-02 13:00
sussRocardoS16-Aug-02 13:00 
GeneralMFC newbie needs help with CString Pin
Raskolnikov16-Aug-02 12:42
Raskolnikov16-Aug-02 12:42 
GeneralRe: MFC newbie needs help with CString Pin
valikac16-Aug-02 13:14
valikac16-Aug-02 13:14 
GeneralRe: MFC newbie needs help with CString Pin
Christian Graus16-Aug-02 13:19
protectorChristian Graus16-Aug-02 13:19 
GeneralCString Trim Pin
Shotgun16-Aug-02 12:26
Shotgun16-Aug-02 12:26 
Good day all, new day, new help me please
in this function to return the users system directory
CString CSetupApp::GetSystemDir()
{
CString szSystemDir((char)0, MAX_PATH);

::GetSystemDirectory(szSystemDir.GetBuffer(0), MAX_PATH);

szSystemDir.TrimLeft();
szSystemDir.TrimRight();

return szSystemDir;
}
the dir is returned correct, but i can't trim the string to add
an apps filename
eg. CString m_Nfile;
m_Nfile = GetSytemDir();
m_Nfile += "\\app.exe";
AfxMessageBox(m_Nfile);
will return "c:\Winnt\system32" or whatever your flavour
with the .Trim having no effect

if anyone can shed some light, its always appreciated.

shotgun
GeneralRe: CString Trim Pin
Michael Dunn16-Aug-02 12:32
sitebuilderMichael Dunn16-Aug-02 12:32 
GeneralRe: CString Trim Pin
Shotgun16-Aug-02 12:38
Shotgun16-Aug-02 12:38 
QuestionCan we put an Icon (Shortcut) for an application with Visual C++ 6.0 MFC in Run Time? Pin
Anonymous16-Aug-02 11:15
Anonymous16-Aug-02 11:15 
AnswerRe: Can we put an Icon (Shortcut) for an application with Visual C++ 6.0 MFC in Run Time? Pin
Anonymous16-Aug-02 12:00
Anonymous16-Aug-02 12:00 
GeneralRe: I tried & failed Pin
ATC16-Aug-02 13:41
ATC16-Aug-02 13:41 
QuestionReturn to the previous active window? Pin
Matt Eckerson16-Aug-02 11:15
Matt Eckerson16-Aug-02 11:15 
AnswerRe: Return to the previous active window? Pin
Matt Eckerson16-Aug-02 19:38
Matt Eckerson16-Aug-02 19:38 
QuestionCan we put an Icon (Shortcut) for an application with Visual C++ 6.0 MFC? Pin
Anonymous16-Aug-02 11:12
Anonymous16-Aug-02 11:12 
AnswerRe: Can we put an Icon (Shortcut) for an application with Visual C++ 6.0 MFC? Pin
Ken Mazaika16-Aug-02 14:54
Ken Mazaika16-Aug-02 14:54 
GeneralNeed Advice on learning MFC. Pin
Raskolnikov16-Aug-02 10:55
Raskolnikov16-Aug-02 10:55 
GeneralRe: Need Advice on learning MFC. Pin
Michael Dunn16-Aug-02 11:17
sitebuilderMichael Dunn16-Aug-02 11:17 
GeneralRe: Need Advice on learning MFC. Pin
Raskolnikov16-Aug-02 12:09
Raskolnikov16-Aug-02 12:09 
GeneralRe: Need Advice on learning MFC. Pin
Christian Graus16-Aug-02 13:21
protectorChristian Graus16-Aug-02 13:21 
GeneralRe: Need Advice on learning MFC. Pin
Ernest Laurentin16-Aug-02 19:02
Ernest Laurentin16-Aug-02 19:02 
GeneralRe: Need Advice on learning MFC. Pin
valikac16-Aug-02 11:20
valikac16-Aug-02 11:20 
GeneralRe: Need Advice on learning MFC. Pin
Raskolnikov16-Aug-02 12:29
Raskolnikov16-Aug-02 12:29 
GeneralRe: Need Advice on learning MFC. Pin
valikac16-Aug-02 13:11
valikac16-Aug-02 13:11 

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.