Click here to Skip to main content
14,448,127 members

C / C++ / MFC

 
AnswerRe: Complex code in conditionals Pin
Richard MacCutchan4-Aug-15 1:26
communityengineerRichard MacCutchan4-Aug-15 1:26 
GeneralRe: Complex code in conditionals Pin
charlieg4-Aug-15 2:41
Membercharlieg4-Aug-15 2:41 
GeneralRe: Complex code in conditionals Pin
Richard MacCutchan4-Aug-15 3:44
communityengineerRichard MacCutchan4-Aug-15 3:44 
GeneralRe: Complex code in conditionals Pin
charlieg4-Aug-15 7:22
Membercharlieg4-Aug-15 7:22 
AnswerRe: Complex code in conditionals Pin
Stefan_Lang11-Aug-15 3:34
mveStefan_Lang11-Aug-15 3:34 
Questionstrcpy dilemma - it works half way Pin
Vaclav_3-Aug-15 16:19
MemberVaclav_3-Aug-15 16:19 
GeneralRe: strcpy dilemma - it works half way Pin
PIEBALDconsult3-Aug-15 17:12
professionalPIEBALDconsult3-Aug-15 17:12 
AnswerRe: strcpy dilemma - it works half way Pin
Richard MacCutchan3-Aug-15 21:48
communityengineerRichard MacCutchan3-Aug-15 21:48 
It should not work at all. String constants declared as above are read-only, so you should not be able to use strcpy to overwrite one of them by another. When I try it I get an access violation on the write, as I would expect. I am not sure why your system does not give the fault, maybe a peculiarity of Arduino. But since strcpy is supposed to return the pointer to the destination field, Result will now point to the data that Source points to, i.e. "123", but the original data should be untouched.
AnswerRe: strcpy dilemma - it works half way Pin
CPallini3-Aug-15 22:08
mveCPallini3-Aug-15 22:08 
GeneralRe: strcpy dilemma - it works half way Pin
Vaclav_4-Aug-15 4:49
MemberVaclav_4-Aug-15 4:49 
GeneralRe: strcpy dilemma - it works half way Pin
CPallini4-Aug-15 7:54
mveCPallini4-Aug-15 7:54 
GeneralSOLVED Re: strcpy dilemma - it works half way Pin
Vaclav_4-Aug-15 8:41
MemberVaclav_4-Aug-15 8:41 
AnswerRe: strcpy dilemma - it works half way Pin
Arthur V. Ratz13-Aug-15 19:54
mvaArthur V. Ratz13-Aug-15 19:54 
QuestionMsbuild for VC++ project having path errors Pin
code_az3-Aug-15 13:54
Membercode_az3-Aug-15 13:54 
Questionruntime error due to corruption of heap Pin
Member 93502372-Aug-15 23:22
MemberMember 93502372-Aug-15 23:22 
AnswerRe: runtime error due to corruption of heap Pin
Member 93502372-Aug-15 23:33
MemberMember 93502372-Aug-15 23:33 
SuggestionRe: runtime error due to corruption of heap Pin
David Crow3-Aug-15 3:12
MemberDavid Crow3-Aug-15 3:12 
AnswerRe: runtime error due to corruption of heap Pin
Daniel Pfeffer3-Aug-15 1:52
professionalDaniel Pfeffer3-Aug-15 1:52 
AnswerRe: runtime error due to corruption of heap Pin
Jochen Arndt3-Aug-15 3:13
professionalJochen Arndt3-Aug-15 3:13 
QuestionConvert to ASCII ? Pin
Vaclav_1-Aug-15 4:52
MemberVaclav_1-Aug-15 4:52 
AnswerRe: Convert to ASCII ? Pin
CPallini1-Aug-15 5:15
mveCPallini1-Aug-15 5:15 
AnswerRe: Convert to ASCII ? Pin
Richard MacCutchan1-Aug-15 5:33
communityengineerRichard MacCutchan1-Aug-15 5:33 
GeneralRe: Convert to ASCII ? Pin
Vaclav_1-Aug-15 10:40
MemberVaclav_1-Aug-15 10:40 
GeneralRe: Convert to ASCII ? Pin
Richard MacCutchan1-Aug-15 22:00
communityengineerRichard MacCutchan1-Aug-15 22:00 
GeneralRe: Convert to ASCII ? Pin
CPallini2-Aug-15 7:56
mveCPallini2-Aug-15 7: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.