Click here to Skip to main content
16,007,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: case insensitive compare??? Pin
Bill Wilson24-Oct-01 6:16
Bill Wilson24-Oct-01 6:16 
GeneralZip files Pin
Mangesh Sardesai23-Oct-01 22:04
Mangesh Sardesai23-Oct-01 22:04 
GeneralRe: Zip files Pin
markkuk23-Oct-01 22:21
markkuk23-Oct-01 22:21 
QuestionHow do I Get The App Path? Pin
23-Oct-01 21:45
suss23-Oct-01 21:45 
AnswerRe: How do I Get The App Path? Pin
Luu Truong Huy23-Oct-01 22:19
Luu Truong Huy23-Oct-01 22:19 
AnswerRe: How do I Get The App Path? Pin
Nish Nishant23-Oct-01 23:04
sitebuilderNish Nishant23-Oct-01 23:04 
AnswerRe: How do I Get The App Path? Pin
Tomasz Sowinski23-Oct-01 23:44
Tomasz Sowinski23-Oct-01 23:44 
AnswerRe: How do I Get The App Path? Pin
Eugene Pustovoyt24-Oct-01 0:09
Eugene Pustovoyt24-Oct-01 0:09 
This code I find on the PJ Naughter's site (http://www.naughter.com/)

CString CSpltestApp::GetHomeDirectory() const
{
  TCHAR sFilename[_MAX_PATH];
  TCHAR sDrive[_MAX_DRIVE];
  TCHAR sDir[_MAX_DIR];
  TCHAR sFname[_MAX_FNAME];
  TCHAR sExt[_MAX_EXT];
  GetModuleFileName(AfxGetInstanceHandle(), sFilename, _MAX_PATH);
  _tsplitpath(sFilename, sDrive, sDir, sFname, sExt);

  CString rVal(CString(sDrive) + CString(sDir));
  int nLen = rVal.GetLength();
  if (rVal.GetAt(nLen-1) != _T('\\'))
    rVal += _T("\\");

  return rVal;
}


I frequently use it, work perfectly!

Best regards,
Eugene Pustovoyt
QuestionHow to limit a zone of scrolling of the View? Pin
Eugene Pustovoyt23-Oct-01 20:25
Eugene Pustovoyt23-Oct-01 20:25 
AnswerRe: How to limit a zone of scrolling of the View? Pin
Christian Graus23-Oct-01 20:39
protectorChristian Graus23-Oct-01 20:39 
AnswerRe: How to limit a zone of scrolling of the View? Pin
Tomasz Sowinski23-Oct-01 23:31
Tomasz Sowinski23-Oct-01 23:31 
GeneralRe: How to limit a zone of scrolling of the View? Pin
Eugene Pustovoyt23-Oct-01 23:54
Eugene Pustovoyt23-Oct-01 23:54 
GeneralRe: How to limit a zone of scrolling of the View? Pin
Tomasz Sowinski23-Oct-01 23:59
Tomasz Sowinski23-Oct-01 23:59 
GeneralRe: How to limit a zone of scrolling of the View? Pin
Eugene Pustovoyt24-Oct-01 0:18
Eugene Pustovoyt24-Oct-01 0:18 
GeneralPlease vote for those who are helpful Pin
Chris Maunder23-Oct-01 18:04
cofounderChris Maunder23-Oct-01 18:04 
GeneralRe: Please vote for those who are helpful Pin
Christian Graus23-Oct-01 18:20
protectorChristian Graus23-Oct-01 18:20 
GeneralRe: Please vote for those who are helpful Pin
Chris Maunder23-Oct-01 18:43
cofounderChris Maunder23-Oct-01 18:43 
GeneralRe: Please vote for those who are helpful Pin
23-Oct-01 22:46
suss23-Oct-01 22:46 
GeneralRe: Please vote for those who are helpful Pin
Tomasz Sowinski23-Oct-01 23:36
Tomasz Sowinski23-Oct-01 23:36 
General.BSC file format Pin
Romeozulu23-Oct-01 15:49
Romeozulu23-Oct-01 15:49 
GeneralRe: .BSC file format Pin
Michael Dunn23-Oct-01 21:21
sitebuilderMichael Dunn23-Oct-01 21:21 
GeneralRe: .BSC file format Pin
Tomasz Sowinski23-Oct-01 23:57
Tomasz Sowinski23-Oct-01 23:57 
GeneralRe: .BSC file format Pin
Romeozulu24-Oct-01 5:18
Romeozulu24-Oct-01 5:18 
GeneralMDI question Pin
23-Oct-01 15:36
suss23-Oct-01 15:36 
GeneralRe: MDI question Pin
Christian Graus23-Oct-01 16:25
protectorChristian Graus23-Oct-01 16:25 

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.