Click here to Skip to main content
15,915,864 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Convert pointer to zlib stream to string? Pin
o m n i1-Dec-09 23:14
o m n i1-Dec-09 23:14 
GeneralRe: Convert pointer to zlib stream to string? Pin
Adam Roderick J2-Dec-09 0:52
Adam Roderick J2-Dec-09 0:52 
AnswerRe: Convert pointer to zlib stream to string? Pin
Richard MacCutchan2-Dec-09 1:46
mveRichard MacCutchan2-Dec-09 1:46 
QuestionThe Value is not updated when Passing a char array by reference Pin
manoharbalu1-Dec-09 22:53
manoharbalu1-Dec-09 22:53 
AnswerRe: The Value is not updated when Passing a char array by reference Pin
Adam Roderick J1-Dec-09 23:13
Adam Roderick J1-Dec-09 23:13 
AnswerRe: The Value is not updated when Passing a char array by reference Pin
KingsGambit1-Dec-09 23:16
KingsGambit1-Dec-09 23:16 
AnswerRe: The Value is not updated when Passing a char array by reference Pin
Richard MacCutchan2-Dec-09 1:49
mveRichard MacCutchan2-Dec-09 1:49 
AnswerRe: The Value is not updated when Passing a char array by reference Pin
loyal ginger2-Dec-09 3:30
loyal ginger2-Dec-09 3:30 
They are not updated because inside GetModelInfo local copies of the variables (which represent the addresses of the character arrays) are assigned new values. Because they are simply copies the original contents of the variables are not changed.

To change the contents of the original arrays, you have to copy the text to the memory addresses like this:

void GetModelInfo(char *pModelName, char *pIC1, char *pIC2)
{
	memcpy(pModelName, "test", 30);
	memcpy(pIC1, "abc", 30);
	memcpy(pIC2, "abc123", 30);
}


That way they will be updated.
QuestionCListCtrl Pin
Paulraj G1-Dec-09 21:55
Paulraj G1-Dec-09 21:55 
AnswerRe: CListCtrl Pin
wangningyu1-Dec-09 22:02
wangningyu1-Dec-09 22:02 
GeneralRe: CListCtrl Pin
Cedric Moonen1-Dec-09 22:07
Cedric Moonen1-Dec-09 22:07 
AnswerRe: CListCtrl Pin
Cedric Moonen1-Dec-09 22:07
Cedric Moonen1-Dec-09 22:07 
GeneralRe: CListCtrl Pin
Paulraj G1-Dec-09 22:16
Paulraj G1-Dec-09 22:16 
GeneralRe: CListCtrl Pin
Cedric Moonen1-Dec-09 22:31
Cedric Moonen1-Dec-09 22:31 
QuestionPDF File Zoomin [modified] Pin
Pryabu1-Dec-09 20:25
Pryabu1-Dec-09 20:25 
AnswerRe: PDF File Zoomin Pin
Richard MacCutchan1-Dec-09 21:33
mveRichard MacCutchan1-Dec-09 21:33 
GeneralRe: PDF File Zoomin Pin
Pryabu1-Dec-09 21:45
Pryabu1-Dec-09 21:45 
GeneralRe: PDF File Zoomin Pin
Richard MacCutchan1-Dec-09 22:46
mveRichard MacCutchan1-Dec-09 22:46 
QuestionRefresh Database take time Pin
MsmVc1-Dec-09 19:49
MsmVc1-Dec-09 19:49 
Questionacessing source data on a URL Pin
solinb1-Dec-09 16:59
solinb1-Dec-09 16:59 
AnswerRe: acessing source data on a URL Pin
N a v a n e e t h1-Dec-09 17:13
N a v a n e e t h1-Dec-09 17:13 
AnswerRe: acessing source data on a URL Pin
Garth J Lancaster1-Dec-09 17:55
professionalGarth J Lancaster1-Dec-09 17:55 
QuestionRe: acessing source data on a URL Pin
David Crow2-Dec-09 3:22
David Crow2-Dec-09 3:22 
AnswerRe: acessing source data on a URL Pin
solinb2-Dec-09 6:18
solinb2-Dec-09 6:18 
QuestionRe: acessing source data on a URL Pin
David Crow2-Dec-09 7:28
David Crow2-Dec-09 7:28 

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.