Click here to Skip to main content
15,890,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralInsert icon in menu Pin
luizferp28-Mar-05 9:47
luizferp28-Mar-05 9:47 
GeneralRe: Insert icon in menu Pin
Alexander M.,28-Mar-05 13:32
Alexander M.,28-Mar-05 13:32 
Generaltemplate questions Pin
act_x28-Mar-05 9:21
act_x28-Mar-05 9:21 
GeneralRe: template questions Pin
Joaquín M López Muñoz28-Mar-05 10:16
Joaquín M López Muñoz28-Mar-05 10:16 
GeneralRe: template questions Pin
act_x28-Mar-05 10:35
act_x28-Mar-05 10:35 
GeneralPlease help me! Pin
dSolariuM28-Mar-05 8:52
dSolariuM28-Mar-05 8:52 
GeneralRe: Please help me! Pin
David Crow28-Mar-05 9:25
David Crow28-Mar-05 9:25 
Questionmemcpy() not working ? Pin
Amarelia28-Mar-05 7:41
Amarelia28-Mar-05 7:41 
Hi
I am developing an application using multi threading concept in Win32 Service which runs on Windows2000 Server.

Here I have used memcpy() function to copy one structure into another.

But it doesn't seems to be copying anything. What seems to be the problem. I have used all the parameter properly. It doesn't gives any message but still it doesn't show anything which needs to be printed.

e.g
=============
struct UsrProfile
{
int a;
int b;
char *str;
char *MainStr;
}
MasterServiceThread(CClass *objPassed)
{
UsrProfile UsrDlts;
Create ChildThread here...
Retrieve details for structure....
UsrDlts.a = 10;
UsrDlts.b = 11;
UsrDlts.str ="Mahesh";
}

ChildThread(CClass *objPassed)
{
UsrProfile Usr;
memcpy(&Usr, &ObjPassed->UsrDlts, sizeof(UsrProfile));
....blah blah....
}

Here it doesn't coping the data that needs to be copied into Usr structure object..

Any idea why it happens....?

Thankx in advance

Mahesh

Amarelia Maehsh
Gujarat
India

AnswerRe: memcpy() not working ? Pin
David Crow28-Mar-05 9:26
David Crow28-Mar-05 9:26 
GeneralRe: memcpy() not working ? Pin
Amarelia28-Mar-05 19:24
Amarelia28-Mar-05 19:24 
GeneralRe: memcpy() not working ? Pin
David Crow29-Mar-05 3:12
David Crow29-Mar-05 3:12 
GeneralProblems with HHOOK variable Pin
r3dqu33n28-Mar-05 7:08
r3dqu33n28-Mar-05 7:08 
GeneralRe: Problems with HHOOK variable Pin
David Crow28-Mar-05 9:35
David Crow28-Mar-05 9:35 
GeneralRe: Problems with HHOOK variable Pin
r3dqu33n28-Mar-05 9:45
r3dqu33n28-Mar-05 9:45 
GeneralRe: Problems with HHOOK variable Pin
David Crow28-Mar-05 9:51
David Crow28-Mar-05 9:51 
GeneralRe: Problems with HHOOK variable Pin
r3dqu33n28-Mar-05 10:03
r3dqu33n28-Mar-05 10:03 
GeneralRe: Problems with HHOOK variable Pin
David Crow28-Mar-05 10:22
David Crow28-Mar-05 10:22 
GeneralBitmap Data Manipulation Pin
LighthouseJ28-Mar-05 7:07
LighthouseJ28-Mar-05 7:07 
GeneralRe: Bitmap Data Manipulation Pin
Chris Losinger28-Mar-05 10:42
professionalChris Losinger28-Mar-05 10:42 
GeneralRe: Bitmap Data Manipulation Pin
LighthouseJ28-Mar-05 12:23
LighthouseJ28-Mar-05 12:23 
Generalerror - edit box variable cannot be evaluated Pin
theFrenchHornet28-Mar-05 5:22
theFrenchHornet28-Mar-05 5:22 
GeneralRe: error - edit box variable cannot be evaluated Pin
David Crow28-Mar-05 6:02
David Crow28-Mar-05 6:02 
GeneralRe: error - edit box variable cannot be evaluated Pin
theFrenchHornet28-Mar-05 6:35
theFrenchHornet28-Mar-05 6:35 
Generaltopmost window stye without getting the focus Pin
Cris28-Mar-05 3:40
Cris28-Mar-05 3:40 
GeneralRe: topmost window stye without getting the focus Pin
ThatsAlok28-Mar-05 17:47
ThatsAlok28-Mar-05 17:47 

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.