Click here to Skip to main content
15,902,918 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to disable key 'Print Screen' or others in MFC ? Pin
CS42922-Mar-03 19:11
CS42922-Mar-03 19:11 
GeneralI need a equation thingy Pin
Anonymous22-Mar-03 17:09
Anonymous22-Mar-03 17:09 
GeneralRe: I need a equation thingy Pin
Jörgen Sigvardsson24-Mar-03 0:46
Jörgen Sigvardsson24-Mar-03 0:46 
QuestionKillTimer() inside a TimerProc? Pin
Moak22-Mar-03 16:27
Moak22-Mar-03 16:27 
AnswerRe: KillTimer() inside a TimerProc? Pin
567890123423-Mar-03 1:42
567890123423-Mar-03 1:42 
GeneralRe: KillTimer() inside a TimerProc? - thx Pin
Moak23-Mar-03 13:20
Moak23-Mar-03 13:20 
QuestionSHFileOperation: making new folders? Pin
IGx8922-Mar-03 15:34
IGx8922-Mar-03 15:34 
AnswerRe: SHFileOperation: making new folders? Pin
Ravi Bhavnani23-Mar-03 9:52
professionalRavi Bhavnani23-Mar-03 9:52 
I'll be posting my FileSystem article soon. It provides this and other convenient functions. Meanwhile, here's the logic:
long FileSystem::createDir
  (CString strDirectory)  // directory
{
  // Return if directory already exists
  if (dirExists (strDirectory))
     return (Status::Duplicate);
 
  // First create parent directory - return if unable
  CString strDirParent;
  getParentDir (strDirectory, strDirParent);
  if (!strDirParent.IsEmpty() && !dirExists (strDirParent))
     {
       long nStatus = createDir (strDirParent);
       if (nStatus == FileSystem::Status::Error)
          return (nStatus);
     }
 
  // Then create directory
  DWORD dwStatus = ::CreateDirectory (strDirectory, NULL);
  if (dwStatus == 0)
     return (Status::Error);
  return (Status::Success);
}
/ravi

Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
GeneralBubble Tool Tips Pin
Stober22-Mar-03 11:18
Stober22-Mar-03 11:18 
GeneralRe: Bubble Tool Tips Pin
Neville Franks22-Mar-03 11:21
Neville Franks22-Mar-03 11:21 
GeneralRe: Bubble Tool Tips Pin
Ancient Dragon22-Mar-03 11:52
Ancient Dragon22-Mar-03 11:52 
GeneralRe: Bubble Tool Tips Pin
Eugene Pustovoyt23-Mar-03 4:48
Eugene Pustovoyt23-Mar-03 4:48 
GeneralRe: Bubble Tool Tips Pin
Ancient Dragon23-Mar-03 7:34
Ancient Dragon23-Mar-03 7:34 
GeneralCreating VC6 compatible library with VC7 Pin
Mikko Mononen22-Mar-03 10:14
Mikko Mononen22-Mar-03 10:14 
Generalusing CTreeCtrl with a CObArray Pin
Colin Davidson22-Mar-03 8:02
Colin Davidson22-Mar-03 8:02 
GeneralRe: using CTreeCtrl with a CObArray Pin
MAAK22-Mar-03 9:09
MAAK22-Mar-03 9:09 
GeneralRe: using CTreeCtrl with a CObArray Pin
Colin Davidson22-Mar-03 9:22
Colin Davidson22-Mar-03 9:22 
GeneralRe: using CTreeCtrl with a CObArray Pin
MAAK22-Mar-03 10:11
MAAK22-Mar-03 10:11 
GeneralRe: using CTreeCtrl with a CObArray Pin
Colin Davidson22-Mar-03 10:25
Colin Davidson22-Mar-03 10:25 
GeneralWM_CTLCOLORSTATIC handler blacks checkboxes Pin
Jared McIntyre22-Mar-03 7:58
Jared McIntyre22-Mar-03 7:58 
Generalhelp needed for crystal edit Pin
cerb-dk22-Mar-03 7:26
cerb-dk22-Mar-03 7:26 
GeneralOutlook style listview control Pin
Kuniva22-Mar-03 4:49
Kuniva22-Mar-03 4:49 
GeneralRe: Outlook style listview control Pin
valikac22-Mar-03 6:35
valikac22-Mar-03 6:35 
GeneralRe: Outlook style listview control Pin
Anonymous22-Mar-03 13:08
Anonymous22-Mar-03 13:08 
GeneralCharts Pin
d.f22-Mar-03 4:41
d.f22-Mar-03 4:41 

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.