Click here to Skip to main content
16,016,580 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCopy the string from const char* To char[500]; Pin
ksaw12313-Jul-09 21:43
ksaw12313-Jul-09 21:43 
AnswerRe: Copy the string from const char* To char[500]; Pin
carter200013-Jul-09 21:49
carter200013-Jul-09 21:49 
AnswerRe: Copy the string from const char* To char[500]; Pin
Cedric Moonen13-Jul-09 21:49
Cedric Moonen13-Jul-09 21:49 
AnswerRe: Copy the string from const char* To char[500]; Pin
CPallini13-Jul-09 22:00
mveCPallini13-Jul-09 22:00 
GeneralRe: Copy the string from const char* To char[500]; Pin
ksaw12313-Jul-09 22:19
ksaw12313-Jul-09 22:19 
GeneralRe: Copy the string from const char* To char[500]; Pin
Cedric Moonen13-Jul-09 22:34
Cedric Moonen13-Jul-09 22:34 
GeneralRe: Copy the string from const char* To char[500]; Pin
CPallini13-Jul-09 22:48
mveCPallini13-Jul-09 22:48 
GeneralRe: Copy the string from const char* To char[500]; Pin
Cedric Moonen13-Jul-09 22:55
Cedric Moonen13-Jul-09 22:55 
CPallini wrote:
Actually it was pathetically simple.


Yes I know that it was simple but you are suggesting to the OP that each time he has to copy a string, he should use this code. Honnestly, I really don't think it is a good idea because it makes the code much more difficult to understand (suppose that you repeat that code in a lot of places in your code Dead | X| ). And apparently, that's what the OP is going to do instead of using one of the "built in" mechanism.


CPallini wrote:
I'm always 'borde'


Mh, yeah, I meant bored of course Poke tongue | ;-P

Cédric Moonen
Software developer

Charting control [v2.0]
OpenGL game tutorial in C++

GeneralRe: Copy the string from const char* To char[500]; Pin
CPallini13-Jul-09 23:19
mveCPallini13-Jul-09 23:19 
JokeRe: Copy the string from const char* To char[500]; Pin
killabyte13-Jul-09 22:50
killabyte13-Jul-09 22:50 
GeneralRe: Copy the string from const char* To char[500]; Pin
CPallini13-Jul-09 23:25
mveCPallini13-Jul-09 23:25 
AnswerRe: Copy the string from const char* To char[500]; Pin
Stuart Dootson13-Jul-09 23:30
professionalStuart Dootson13-Jul-09 23:30 
JokeRe: Copy the string from const char* To char[500]; Pin
CPallini13-Jul-09 23:48
mveCPallini13-Jul-09 23:48 
JokeRe: Copy the string from const char* To char[500]; Pin
Stuart Dootson13-Jul-09 23:56
professionalStuart Dootson13-Jul-09 23:56 
JokeRe: Copy the string from const char* To char[500]; Pin
CPallini14-Jul-09 0:01
mveCPallini14-Jul-09 0:01 
QuestionPeriod and Duty cycle calculation [modified] Pin
sks8313-Jul-09 20:37
sks8313-Jul-09 20:37 
AnswerRe: Period and Duty cycle calculation Pin
LittleYellowBird13-Jul-09 21:52
LittleYellowBird13-Jul-09 21:52 
GeneralRe: Period and Duty cycle calculation Pin
sks8313-Jul-09 22:17
sks8313-Jul-09 22:17 
GeneralRe: Period and Duty cycle calculation Pin
Stuart Dootson13-Jul-09 22:32
professionalStuart Dootson13-Jul-09 22:32 
GeneralRe: Period and Duty cycle calculation Pin
sks8313-Jul-09 23:01
sks8313-Jul-09 23:01 
GeneralRe: Period and Duty cycle calculation Pin
Stuart Dootson13-Jul-09 23:05
professionalStuart Dootson13-Jul-09 23:05 
GeneralRe: Period and Duty cycle calculation Pin
Cedric Moonen13-Jul-09 23:07
Cedric Moonen13-Jul-09 23:07 
GeneralRe: Period and Duty cycle calculation [modified] Pin
sks8313-Jul-09 23:12
sks8313-Jul-09 23:12 
GeneralRe: Period and Duty cycle calculation Pin
Cedric Moonen13-Jul-09 23:19
Cedric Moonen13-Jul-09 23:19 
GeneralRe: Period and Duty cycle calculation Pin
sks8313-Jul-09 23:56
sks8313-Jul-09 23:56 

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.