Click here to Skip to main content
15,917,875 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
CPallini wrote:
That's hybrid


Hybrid's[^] good these days, maaaaan (allegedly).

CPallini wrote:
// needs a different #include!
const char * p= "ddddd";
char q[500];

std::string s(p);
s += '\0';
s.copy(q, s.length());

(I know, that's, well..., ugly! )


Well, if I'd known you were bringing strings, I'd've used this:

const std::string p = "ddddd";
std::string q;
q=p;


Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

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 
GeneralRe: Period and Duty cycle calculation Pin
LittleYellowBird14-Jul-09 0:05
LittleYellowBird14-Jul-09 0:05 
Questioncommand buttons in SDI Pin
Member 59031013-Jul-09 20:27
Member 59031013-Jul-09 20:27 
AnswerRe: command buttons in SDI Pin
_AnsHUMAN_ 13-Jul-09 20:35
_AnsHUMAN_ 13-Jul-09 20:35 
Questiondatetime control on Windows mobile 5.0 win32 application. Pin
zakkas248313-Jul-09 20:23
zakkas248313-Jul-09 20:23 
QuestionRe: datetime control on Windows mobile 5.0 win32 application. Pin
David Crow14-Jul-09 9:02
David Crow14-Jul-09 9:02 
QuestionSocket Pin
navneet198513-Jul-09 20:15
navneet198513-Jul-09 20:15 

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.