Click here to Skip to main content
15,921,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to show a progress dialog to a no window procedure Pin
Hamid_RT16-May-07 2:08
Hamid_RT16-May-07 2:08 
GeneralRe: How to show a progress dialog to a no window procedure Pin
Mark Salsbery16-May-07 4:59
Mark Salsbery16-May-07 4:59 
GeneralRe: How to show a progress dialog to a no window procedure Pin
Mark Salsbery16-May-07 5:14
Mark Salsbery16-May-07 5:14 
Questionerror C2106: '=' : left operand must be l-value Pin
Aint14-May-07 17:43
Aint14-May-07 17:43 
AnswerRe: error C2106: '=' : left operand must be l-value Pin
bob1697214-May-07 18:14
bob1697214-May-07 18:14 
GeneralRe: error C2106: '=' : left operand must be l-value Pin
Arman S.14-May-07 20:08
Arman S.14-May-07 20:08 
GeneralRe: error C2106: '=' : left operand must be l-value Pin
bob1697215-May-07 2:13
bob1697215-May-07 2:13 
AnswerRe: error C2106: '=' : left operand must be l-value Pin
John R. Shaw14-May-07 19:10
John R. Shaw14-May-07 19:10 
If it is a normal language array such as char lead[10], then the compiler does not generate the code to copy for you. If you where expecting dynamic copy and or creation, then you need to use a container class like vector for that.

char a1[10] = {/*something*/};
char a2[10];

memcpy(a2,a1,10); // copy 10 bytes from a1 to a2


Or with vector

std::vector<char> b1;
std::vector<char> b2;
/* assign something to b1
** ....
*/

b2 = b1; // allocates memory (if needed) and copies b1 to b2



INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

QuestionEvent Handler -Please help me Pin
prathuraj14-May-07 17:08
prathuraj14-May-07 17:08 
AnswerRe: Event Handler -Please help me Pin
Arman S.14-May-07 19:30
Arman S.14-May-07 19:30 
GeneralRe: Event Handler -Please help me Pin
prathuraj14-May-07 19:43
prathuraj14-May-07 19:43 
GeneralRe: Event Handler -Please help me Pin
Arman S.14-May-07 19:51
Arman S.14-May-07 19:51 
GeneralRe: Event Handler -Please help me Pin
prathuraj14-May-07 22:32
prathuraj14-May-07 22:32 
GeneralRe: Event Handler -Please help me Pin
Arman S.14-May-07 22:40
Arman S.14-May-07 22:40 
GeneralRe: Event Handler -Please help me Pin
Hamid_RT14-May-07 20:55
Hamid_RT14-May-07 20:55 
GeneralRe: Event Handler -Please help me Pin
prathuraj14-May-07 23:33
prathuraj14-May-07 23:33 
GeneralRe: Event Handler -Please help me Pin
Hamid_RT15-May-07 1:00
Hamid_RT15-May-07 1:00 
GeneralRe: Event Handler -Please help me Pin
prathuraj15-May-07 1:23
prathuraj15-May-07 1:23 
GeneralRe: Event Handler -Please help me Pin
Hamid_RT15-May-07 2:05
Hamid_RT15-May-07 2:05 
Questionwhat to include to use XMLReader? Pin
nathan714-May-07 16:41
nathan714-May-07 16:41 
AnswerRe: what to include to use XMLReader? Pin
nathan714-May-07 16:48
nathan714-May-07 16:48 
GeneralRe: what to include to use XMLReader? Pin
bob1697214-May-07 17:21
bob1697214-May-07 17:21 
AnswerRe: what to include to use XMLReader? Pin
Hamid_RT14-May-07 20:58
Hamid_RT14-May-07 20:58 
AnswerRe: what to include to use XMLReader? Pin
Sam_c15-May-07 3:37
Sam_c15-May-07 3:37 
QuestionCScrollBar SB_LINEDOWN Pin
bob1697214-May-07 12:23
bob1697214-May-07 12:23 

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.