Click here to Skip to main content
15,895,667 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: thanks!! Pin
Le centriste1-Oct-02 5:50
Le centriste1-Oct-02 5:50 
QuestionHow do i make a Radio Button set at runtime? Pin
Anonymous1-Oct-02 5:31
Anonymous1-Oct-02 5:31 
AnswerRe: How do i make a Radio Button set at runtime? Pin
jmkhael1-Oct-02 5:34
jmkhael1-Oct-02 5:34 
GeneralRe: How do i make a Radio Button set at runtime? Pin
Anonymous1-Oct-02 5:53
Anonymous1-Oct-02 5:53 
AnswerRe: How do i make a Radio Button set at runtime? Pin
valikac1-Oct-02 5:45
valikac1-Oct-02 5:45 
GeneralRe: How do i make a Radio Button set at runtime? Pin
Anonymous1-Oct-02 5:52
Anonymous1-Oct-02 5:52 
GeneralRe: How do i make a Radio Button set at runtime? Pin
valikac1-Oct-02 10:31
valikac1-Oct-02 10:31 
Generalstrlen and char* Pin
ns1-Oct-02 4:49
ns1-Oct-02 4:49 
I have a
char* a ="a sentence"
. I need to copy this into another char* b , after allocating enough memory to b.

I am very unsure about how to get the length of a so I can do

char *b = new char[a_length+1];


If I use strlen, how exactly do I code this?

a_length = strlen(*a);


or

a_length = strlen(a);</




Appreciate your help,
ns
GeneralRe: strlen and char* Pin
Nish Nishant1-Oct-02 4:56
sitebuilderNish Nishant1-Oct-02 4:56 
GeneralRe: strlen and char* Pin
User 66581-Oct-02 5:14
User 66581-Oct-02 5:14 
GeneralRe: strlen and char* Pin
ns1-Oct-02 5:17
ns1-Oct-02 5:17 
GeneralRe: strlen and char* Pin
Michael Dunn1-Oct-02 5:21
sitebuilderMichael Dunn1-Oct-02 5:21 
GeneralRe: strlen and char* Pin
Michael Dunn1-Oct-02 5:18
sitebuilderMichael Dunn1-Oct-02 5:18 
GeneralRe: strlen and char* Pin
User 66581-Oct-02 5:23
User 66581-Oct-02 5:23 
GeneralRe: strlen and char* Pin
jmkhael1-Oct-02 5:30
jmkhael1-Oct-02 5:30 
GeneralRe: strlen and char* Pin
User 66581-Oct-02 5:38
User 66581-Oct-02 5:38 
GeneralRe: strlen and char* Pin
jmkhael1-Oct-02 5:42
jmkhael1-Oct-02 5:42 
GeneralRe: strlen and char* Pin
Daniel Turini1-Oct-02 6:00
Daniel Turini1-Oct-02 6:00 
Generalstrcpy and CString question Pin
ns1-Oct-02 4:34
ns1-Oct-02 4:34 
GeneralRe: strcpy and CString question Pin
Nish Nishant1-Oct-02 4:46
sitebuilderNish Nishant1-Oct-02 4:46 
GeneralRe: strcpy and CString question Pin
ns1-Oct-02 4:52
ns1-Oct-02 4:52 
GeneralRe: strcpy and CString question Pin
Michael Dunn1-Oct-02 5:17
sitebuilderMichael Dunn1-Oct-02 5:17 
GeneralRe: strcpy and CString question Pin
Jon Hulatt1-Oct-02 5:30
Jon Hulatt1-Oct-02 5:30 
GeneralRe: strcpy and CString question Pin
Jon Hulatt1-Oct-02 5:35
Jon Hulatt1-Oct-02 5:35 
GeneralRe: strcpy and CString question Pin
Nitron1-Oct-02 5:31
Nitron1-Oct-02 5:31 

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.