Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Measure CRichEditCtrl height Pin
David Crow11-Jan-11 9:08
David Crow11-Jan-11 9:08 
AnswerRe: Measure CRichEditCtrl height Pin
Pavel Sokolov11-Jan-11 10:07
Pavel Sokolov11-Jan-11 10:07 
GeneralRe: Measure CRichEditCtrl height Pin
Nikolay Denisov18-Feb-11 22:27
Nikolay Denisov18-Feb-11 22:27 
GeneralRe: Measure CRichEditCtrl height Pin
Pavel Sokolov18-Feb-11 22:41
Pavel Sokolov18-Feb-11 22:41 
GeneralRe: Measure CRichEditCtrl height Pin
Nikolay Denisov18-Feb-11 23:02
Nikolay Denisov18-Feb-11 23:02 
QuestionError concatinating file path and file name.... Pin
AmbiguousName11-Jan-11 4:27
AmbiguousName11-Jan-11 4:27 
AnswerRe: Error concatinating file path and file name.... Pin
Cedric Moonen11-Jan-11 4:42
Cedric Moonen11-Jan-11 4:42 
AnswerRe: Error concatinating file path and file name.... Pin
Luc Pattyn11-Jan-11 4:43
sitebuilderLuc Pattyn11-Jan-11 4:43 
strcat needs a writeable destination buffer.
where is all this text going to be stored? you need a buffer large enough to hold it, I see it nowhere.

Here is one way of doing it (C code):

char* result=malloc(1000);
strcpy(result, filePath);
strcat(result, fileName);
strcat(result, ".wav");


This is far from optimal, as the size is overestimated, and the string operations are unsafe, they could overrun the destination buffer. It would also fail if filePath doesn't end on a backslash, or fileName already has an extension.
But it would work.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

AnswerRe: Error concatinating file path and file name.... Pin
Richard MacCutchan11-Jan-11 6:02
mveRichard MacCutchan11-Jan-11 6:02 
AnswerRe: Error concatinating file path and file name.... Pin
User 742933811-Jan-11 6:41
professionalUser 742933811-Jan-11 6:41 
GeneralRe: Error concatinating file path and file name.... Pin
XTAL25611-Jan-11 13:38
XTAL25611-Jan-11 13:38 
AnswerRe: Error concatinating file path and file name.... Pin
«_Superman_»11-Jan-11 6:44
professional«_Superman_»11-Jan-11 6:44 
QuestionLoad Dialog From a Resource DLL Pin
goldenrose911-Jan-11 3:31
goldenrose911-Jan-11 3:31 
QuestionRe: Load Dialog From a Resource DLL Pin
Cool_Dev11-Jan-11 3:49
Cool_Dev11-Jan-11 3:49 
AnswerRe: Load Dialog From a Resource DLL Pin
goldenrose911-Jan-11 4:46
goldenrose911-Jan-11 4:46 
GeneralRe: Load Dialog From a Resource DLL Pin
Cool_Dev11-Jan-11 16:23
Cool_Dev11-Jan-11 16:23 
GeneralRe: Load Dialog From a Resource DLL Pin
goldenrose911-Jan-11 16:43
goldenrose911-Jan-11 16:43 
AnswerRe: Load Dialog From a Resource DLL Pin
User 742933811-Jan-11 3:54
professionalUser 742933811-Jan-11 3:54 
GeneralRe: Load Dialog From a Resource DLL Pin
goldenrose911-Jan-11 4:53
goldenrose911-Jan-11 4:53 
GeneralRe: Load Dialog From a Resource DLL Pin
Andrew Brock11-Jan-11 4:46
Andrew Brock11-Jan-11 4:46 
GeneralRe: Load Dialog From a Resource DLL Pin
goldenrose911-Jan-11 4:49
goldenrose911-Jan-11 4:49 
AnswerRe: Load Dialog From a Resource DLL Pin
Andrew Brock11-Jan-11 5:09
Andrew Brock11-Jan-11 5:09 
GeneralRe: Load Dialog From a Resource DLL Pin
goldenrose911-Jan-11 19:53
goldenrose911-Jan-11 19:53 
AnswerRe: Load Dialog From a Resource DLL Pin
Abhi Lahare11-Jan-11 5:19
Abhi Lahare11-Jan-11 5:19 
AnswerRe: Load Dialog From a Resource DLL Pin
Richard MacCutchan11-Jan-11 5:58
mveRichard MacCutchan11-Jan-11 5:58 

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.