Click here to Skip to main content
15,902,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with Array of char* Pin
error140818-Feb-09 2:40
error140818-Feb-09 2:40 
GeneralRe: Problem with Array of char* Pin
CPallini18-Feb-09 3:10
mveCPallini18-Feb-09 3:10 
GeneralRe: Problem with Array of char* Pin
error140818-Feb-09 3:13
error140818-Feb-09 3:13 
GeneralRe: Problem with Array of char* Pin
CPallini18-Feb-09 3:18
mveCPallini18-Feb-09 3:18 
GeneralRe: Problem with Array of char* Pin
Arman S.18-Feb-09 2:03
Arman S.18-Feb-09 2:03 
QuestionRe: Problem with Array of char* Pin
David Crow18-Feb-09 3:19
David Crow18-Feb-09 3:19 
AnswerRe: Problem with Array of char* Pin
error140818-Feb-09 5:25
error140818-Feb-09 5:25 
GeneralRe: Problem with Array of char* Pin
David Crow18-Feb-09 5:30
David Crow18-Feb-09 5:30 
error1408 wrote:
Why does the param char * not work but the char * thats created here?


Work through this:

void main( void )
{
    char *abc = "First";
    char xyz[] = "Last";
 
    abc[0] = '1';
    xyz[0] = '2';
}


error1408 wrote:
Btw. I have to DELETE the char *temp afterwards, right?


Correct (since it points to heap memory).

"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons


GeneralRe: Problem with Array of char* Pin
error140818-Feb-09 6:00
error140818-Feb-09 6:00 
GeneralRe: Problem with Array of char* Pin
David Crow18-Feb-09 6:06
David Crow18-Feb-09 6:06 
GeneralRe: Problem with Array of char* Pin
ilostmyid218-Feb-09 19:32
professionalilostmyid218-Feb-09 19:32 
QuestionHow to change the column order or position? Pin
mikert_200817-Feb-09 23:53
mikert_200817-Feb-09 23:53 
AnswerRe: How to change the column order or position? Pin
David Crow18-Feb-09 3:21
David Crow18-Feb-09 3:21 
Questionsaving list control data in a string Pin
brucewayn17-Feb-09 23:48
brucewayn17-Feb-09 23:48 
AnswerRe: saving list control data in a string Pin
«_Superman_»17-Feb-09 23:58
professional«_Superman_»17-Feb-09 23:58 
AnswerRe: saving list control data in a string Pin
Sarath C18-Feb-09 0:08
Sarath C18-Feb-09 0:08 
QuestionRe: saving list control data in a string Pin
brucewayn18-Feb-09 0:21
brucewayn18-Feb-09 0:21 
AnswerRe: saving list control data in a string Pin
Sarath C18-Feb-09 0:28
Sarath C18-Feb-09 0:28 
QuestionSuppressing dialog UI in a property sheet Pin
Mushtaque Nizamani17-Feb-09 23:28
Mushtaque Nizamani17-Feb-09 23:28 
AnswerRe: Suppressing dialog UI in a property sheet Pin
«_Superman_»17-Feb-09 23:42
professional«_Superman_»17-Feb-09 23:42 
GeneralRe: Suppressing dialog UI in a property sheet Pin
Mushtaque Nizamani18-Feb-09 0:02
Mushtaque Nizamani18-Feb-09 0:02 
AnswerRe: Suppressing dialog UI in a property sheet Pin
_AnsHUMAN_ 18-Feb-09 0:14
_AnsHUMAN_ 18-Feb-09 0:14 
QuestionProblem passing an array of UDT from Excel VBA to a C++ dll Pin
eight17-Feb-09 23:28
eight17-Feb-09 23:28 
AnswerRe: Problem passing an array of UDT from Excel VBA to a C++ dll Pin
dishaagrawal8-Dec-09 5:49
dishaagrawal8-Dec-09 5:49 
QuestionUnable to print Images in ListBox Pin
hemlat17-Feb-09 22:21
hemlat17-Feb-09 22:21 

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.