Click here to Skip to main content
15,889,335 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Stupid CBitmapButton question regarding resource editor. Pin
Maximilien20-Jun-06 10:11
Maximilien20-Jun-06 10:11 
GeneralRe: Stupid CBitmapButton question regarding resource editor. Pin
David Crow20-Jun-06 10:27
David Crow20-Jun-06 10:27 
QuestionKNOX Forum Pin
knoxplusplus20-Jun-06 7:37
knoxplusplus20-Jun-06 7:37 
AnswerRe: KNOX Forum Pin
David Crow20-Jun-06 7:41
David Crow20-Jun-06 7:41 
AnswerRe: KNOX Forum Pin
toxcct20-Jun-06 21:36
toxcct20-Jun-06 21:36 
QuestionIssues with pointers [modified] Pin
capricious_00120-Jun-06 6:46
capricious_00120-Jun-06 6:46 
AnswerRe: Issues with pointers Pin
Justin Tay20-Jun-06 7:11
Justin Tay20-Jun-06 7:11 
AnswerRe: Issues with pointers Pin
David Crow20-Jun-06 7:38
David Crow20-Jun-06 7:38 
capricious_001 wrote:
char rspath[255];
strcpy(rspath,"");


Use this instead:

char rspath[255] = {0};
capricious_001 wrote:
lstrcat(rspath, "\\");


What if rspath already ends with a backslash? Use PathAddBackslash() instead.

Why mix strcpy() with lstrcpy()?

capricious_001 wrote:
LPSTR lpcsLogFile;
lstrcpy(lpcsLogFile, lszLogFile);
//or this
lstrcpy(lpcsLogFile, static_cast(lszLogFile));


This will not work since lpcsLogFile is a pointer that is not pointing to allocated memory.


"The largest fire starts but with the smallest spark." - David Crow

"Judge not by the eye but by the heart." - Native American Proverb


GeneralRe: Issues with pointers [modified] Pin
capricious_00120-Jun-06 8:11
capricious_00120-Jun-06 8:11 
GeneralRe: Issues with pointers Pin
Justin Tay20-Jun-06 8:36
Justin Tay20-Jun-06 8:36 
GeneralRe: Issues with pointers Pin
capricious_00120-Jun-06 15:32
capricious_00120-Jun-06 15:32 
QuestionFTP server communication i n C++ Pin
LCI20-Jun-06 6:46
LCI20-Jun-06 6:46 
AnswerRe: FTP server communication i n C++ Pin
valikac20-Jun-06 8:20
valikac20-Jun-06 8:20 
GeneralRe: FTP server communication i n C++ Pin
LCI20-Jun-06 8:30
LCI20-Jun-06 8:30 
AnswerRe: FTP server communication i n C++ Pin
led mike20-Jun-06 9:38
led mike20-Jun-06 9:38 
GeneralRe: FTP server communication i n C++ Pin
LCI20-Jun-06 10:58
LCI20-Jun-06 10:58 
GeneralRe: FTP server communication i n C++ Pin
led mike20-Jun-06 11:55
led mike20-Jun-06 11:55 
GeneralRe: FTP server communication i n C++ Pin
LCI21-Jun-06 3:32
LCI21-Jun-06 3:32 
GeneralRe: FTP server communication i n C++ Pin
led mike21-Jun-06 5:02
led mike21-Jun-06 5:02 
QuestionGetting IP address of Network card Pin
act_x20-Jun-06 5:56
act_x20-Jun-06 5:56 
AnswerRe: Getting IP address of Network card Pin
David Crow20-Jun-06 6:12
David Crow20-Jun-06 6:12 
QuestionErrors: MSVC 6.0, SDI MFC APP. Pin
tingu20-Jun-06 5:37
tingu20-Jun-06 5:37 
QuestionRe: Errors: MSVC 6.0, SDI MFC APP. Pin
David Crow20-Jun-06 6:23
David Crow20-Jun-06 6:23 
QuestionRe: Errors: MSVC 6.0, SDI MFC APP. Pin
tingu20-Jun-06 6:28
tingu20-Jun-06 6:28 
AnswerRe: Errors: MSVC 6.0, SDI MFC APP. Pin
David Crow20-Jun-06 6:37
David Crow20-Jun-06 6:37 

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.