Click here to Skip to main content
15,917,603 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Access to class in another file. Pin
Iceberg769-Apr-04 20:28
Iceberg769-Apr-04 20:28 
GeneralRe: Access to class in another file. Pin
Maxwell Chen11-Apr-04 16:39
Maxwell Chen11-Apr-04 16:39 
GeneralRe: Access to class in another file. Pin
Iceberg7611-Apr-04 20:09
Iceberg7611-Apr-04 20:09 
Generalneed helps for writing voice chat program in Visual C++ Pin
NgocHung8-Apr-04 15:12
NgocHung8-Apr-04 15:12 
GeneralRe: need helps for writing voice chat program in Visual C++ Pin
Timothy Grabrian8-Apr-04 15:41
professionalTimothy Grabrian8-Apr-04 15:41 
GeneralRe: need helps for writing voice chat program in Visual C++ Pin
NgocHung9-Apr-04 3:31
NgocHung9-Apr-04 3:31 
GeneralDoes Directory Exists Pin
Timothy Grabrian8-Apr-04 14:05
professionalTimothy Grabrian8-Apr-04 14:05 
GeneralRe: Does Directory Exists Pin
gUrM33T8-Apr-04 14:49
gUrM33T8-Apr-04 14:49 
KingKruncher wrote:
is there another way

Yes there is (actually more than one). One of them is to use GetFileAttributes to check for the existence of a file or directory. Take a look:
C++
// directory does not exists?
if (GetFileAttributes(TEXT("c:\\some_directory")) == (DWORD)-1)
{
  if (GetLastError() == ERROR_FILE_NOT_FOUND)
  {
    if (MessageBox(NULL, TEXT("Directory c:\\some_directory does not exists. Would you like to create it?"), TEXT("Please Confirm"), 0) == IDYES)
    {
      // TODO: create a directory
    }
  }
}


Hope this helps.

Gurmeet S. Kochar
If you believe in God, it's because of the Devil

My CodeProject Articles: HTML Reader C++ Class Library, Numeric Edit Control

GeneralRe: Thanks Pin
Timothy Grabrian8-Apr-04 15:12
professionalTimothy Grabrian8-Apr-04 15:12 
GeneralRe: Thanks Pin
8-Apr-04 15:38
suss8-Apr-04 15:38 
GeneralRe: Thanks Pin
Timothy Grabrian8-Apr-04 15:52
professionalTimothy Grabrian8-Apr-04 15:52 
GeneralWM_SYSCOMMAND & SC_MOUSEMENU Pin
Anonymous8-Apr-04 13:38
Anonymous8-Apr-04 13:38 
QuestionHow to override CEdit::Paste Pin
Hashim Saleem8-Apr-04 13:35
Hashim Saleem8-Apr-04 13:35 
AnswerRe: How to override CEdit::Paste Pin
gUrM33T8-Apr-04 14:53
gUrM33T8-Apr-04 14:53 
GeneralRe: How to override CEdit::Paste Pin
Hashim Saleem8-Apr-04 14:59
Hashim Saleem8-Apr-04 14:59 
GeneralRe: How to override CEdit::Paste Pin
gUrM33T8-Apr-04 15:47
gUrM33T8-Apr-04 15:47 
GeneralRectangle call fails Pin
Blake Miller8-Apr-04 11:56
Blake Miller8-Apr-04 11:56 
GeneralRetrieving MySQL blob to GDI+ object without file access Pin
lbe8-Apr-04 11:29
lbe8-Apr-04 11:29 
GeneralRe: Retrieving MySQL blob to GDI+ object without file access Pin
PJ Arends8-Apr-04 15:39
professionalPJ Arends8-Apr-04 15:39 
GeneralRe: Retrieving MySQL blob to GDI+ object without file access Pin
lbe20-Apr-04 10:06
lbe20-Apr-04 10:06 
Generaldetect enter key in single line edit box Pin
Anonymous8-Apr-04 11:25
Anonymous8-Apr-04 11:25 
GeneralRe: detect enter key in single line edit box Pin
Anonymous8-Apr-04 13:23
Anonymous8-Apr-04 13:23 
GeneralRe: detect enter key in single line edit box Pin
gUrM33T8-Apr-04 14:59
gUrM33T8-Apr-04 14:59 
GeneralRe: detect enter key in single line edit box Pin
Timothy Grabrian8-Apr-04 16:02
professionalTimothy Grabrian8-Apr-04 16:02 
GeneralRe: detect enter key in single line edit box Pin
Renjith Ramachandran8-Apr-04 22:43
Renjith Ramachandran8-Apr-04 22:43 

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.