Click here to Skip to main content
14,357,800 members

C / C++ / MFC

 
GeneralRe: Is it possible to change the background color of a CMFCButton which is under control of a visual manager theme? Pin
Richard MacCutchan28-May-15 21:42
protectorRichard MacCutchan28-May-15 21:42 
GeneralRe: Is it possible to change the background color of a CMFCButton which is under control of a visual manager theme? Pin
Maximilien29-May-15 2:50
memberMaximilien29-May-15 2:50 
Questiontool-tip Pin
Member 1168600526-May-15 18:11
memberMember 1168600526-May-15 18:11 
AnswerRe: tool-tip Pin
_Flaviu26-May-15 22:41
member_Flaviu26-May-15 22:41 
QuestionSimple anti virus project (Argv FILE* dirent.h) Pin
a random user24-May-15 5:49
membera random user24-May-15 5:49 
AnswerRe: Simple anti virus project (Argv FILE* dirent.h) Pin
Richard MacCutchan24-May-15 7:09
protectorRichard MacCutchan24-May-15 7:09 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
a random user24-May-15 7:21
membera random user24-May-15 7:21 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
Richard MacCutchan24-May-15 7:47
protectorRichard MacCutchan24-May-15 7:47 
OK, let us say that you have a path ("C:\Users\Noname\Documents\Test") in argv[1], and you now want to inspect a subdirectory called "images":
int argvSize = strlen(argv[1]); // the number of characters in the base path
// calculate the space needed for the subdirectory as follows:
//     the length of the base path (argv[1])
//     plus the length of the new subdirectory
//     plus one for the backslash separator in front of the new directory
//     plus 1 for the trailing null character
//
int mallocSize = argvSize + strlen(subdir) + 1 + 1;
char* newPath = (char*)malloc(mallocSize);
strcpy(newPath, argv[1]);  // copy the root path
strcat(newPath, "\\");     // add a single trailing backslash - note two \\ required here,
                           // as the first one is treated as the escape character
strcat(newPath, subdir);   // append the new directory name at the end.
                           // The trailing null is appended automatically by strcat

//  newPath should now contain:
//                  C:\Users\Noname\Documents\Test\images

GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
a random user24-May-15 8:06
membera random user24-May-15 8:06 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
Richard MacCutchan24-May-15 8:11
protectorRichard MacCutchan24-May-15 8:11 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
a random user24-May-15 8:20
membera random user24-May-15 8:20 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
Richard MacCutchan24-May-15 22:36
protectorRichard MacCutchan24-May-15 22:36 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
a random user25-May-15 3:24
membera random user25-May-15 3:24 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
Richard MacCutchan25-May-15 3:33
protectorRichard MacCutchan25-May-15 3:33 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
a random user25-May-15 3:59
membera random user25-May-15 3:59 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
Richard MacCutchan25-May-15 4:25
protectorRichard MacCutchan25-May-15 4:25 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
a random user25-May-15 4:34
membera random user25-May-15 4:34 
QuestionC language Help using Dirent.h Pin
a random user22-May-15 7:24
membera random user22-May-15 7:24 
SuggestionRe: C language Help using Dirent.h Pin
Richard MacCutchan22-May-15 8:19
protectorRichard MacCutchan22-May-15 8:19 
AnswerRe: C language Help using Dirent.h Pin
k505422-May-15 8:37
memberk505422-May-15 8:37 
GeneralRe: C language Help using Dirent.h Pin
a random user23-May-15 2:06
membera random user23-May-15 2:06 
GeneralRe: C language Help using Dirent.h Pin
Richard MacCutchan23-May-15 3:15
protectorRichard MacCutchan23-May-15 3:15 
GeneralRe: C language Help using Dirent.h Pin
a random user23-May-15 3:56
membera random user23-May-15 3:56 
GeneralRe: C language Help using Dirent.h Pin
Richard MacCutchan23-May-15 4:04
protectorRichard MacCutchan23-May-15 4:04 
GeneralRe: C language Help using Dirent.h Pin
a random user23-May-15 4:08
membera random user23-May-15 4:08 

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.