Click here to Skip to main content
16,011,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: More than one window Pin
KarstenK7-Nov-02 0:17
mveKarstenK7-Nov-02 0:17 
GeneralRe: More than one window Pin
mzakarni7-Nov-02 1:08
mzakarni7-Nov-02 1:08 
Generalchange dll !!!!! Pin
maxyi6-Nov-02 22:35
maxyi6-Nov-02 22:35 
GeneralRe: change dll !!!!! Pin
Christian Graus6-Nov-02 22:40
protectorChristian Graus6-Nov-02 22:40 
GeneralRe: change dll !!!!! Pin
maxyi7-Nov-02 1:45
maxyi7-Nov-02 1:45 
GeneralRe: change dll !!!!! Pin
Jon Hulatt6-Nov-02 23:28
Jon Hulatt6-Nov-02 23:28 
GeneralRe: change dll !!!!! Pin
maxyi7-Nov-02 1:48
maxyi7-Nov-02 1:48 
GeneralMessage cross threads Pin
stevenson6-Nov-02 22:19
stevenson6-Nov-02 22:19 
hi,
in one procedure I post message to thread with wParam, the thread accepted my message, but wParam is corrupted.
Here is the code:
In the procedure
MsgParam *pSendParam=new MsgParam;
pSendParam->pBuf=pBuf;
pSendParam->nLen=nLen;

PostThreadMessage(tid,WM_HYDRO_RXD_ARRIVAL,(WPARAM)pSendParam,0);


In thread Function
case WM_HYDRO_RXD_ARRIVAL:
     pRecParam=(MsgParam*)msg.wParam;


before PostThreadMessage, pSendParam is correct(in this case, it's f5f5090574a05200), but in case WM_HYDRO_RXD_ARRIVAL, the value is corrupted as 44bf4a5f01000000,

How to transfer data correctly?






Extreme programming. Do the No.1
GeneralRe: Message cross threads Pin
stevenson6-Nov-02 22:22
stevenson6-Nov-02 22:22 
GeneralRe: Message cross threads Pin
Daniel Lohmann7-Nov-02 1:39
Daniel Lohmann7-Nov-02 1:39 
GeneralRe: Message cross threads Pin
Daniel Lohmann6-Nov-02 22:45
Daniel Lohmann6-Nov-02 22:45 
GeneralRe: Message cross threads Pin
includeh107-Nov-02 0:15
includeh107-Nov-02 0:15 
GeneralRe: Message cross threads Pin
Daniel Lohmann7-Nov-02 1:37
Daniel Lohmann7-Nov-02 1:37 
GeneralRe: Message cross threads Pin
includeh107-Nov-02 2:47
includeh107-Nov-02 2:47 
GeneralRe: Message cross threads Pin
stevenson7-Nov-02 13:55
stevenson7-Nov-02 13:55 
GeneralRe: Message cross threads Pin
Kelly Herald7-Nov-02 12:02
Kelly Herald7-Nov-02 12:02 
QuestionHow to: GDI Flicker Free ?? Pin
cleathley6-Nov-02 22:14
cleathley6-Nov-02 22:14 
AnswerRe: How to: GDI Flicker Free ?? Pin
Christian Graus6-Nov-02 22:24
protectorChristian Graus6-Nov-02 22:24 
AnswerRe: How to: GDI Flicker Free ?? Pin
KarstenK7-Nov-02 0:13
mveKarstenK7-Nov-02 0:13 
GeneralIE reuse Pin
rrrado6-Nov-02 22:10
rrrado6-Nov-02 22:10 
GeneralRe: IE reuse Pin
Stephane Rodriguez.6-Nov-02 23:03
Stephane Rodriguez.6-Nov-02 23:03 
GeneralRe: IE reuse Pin
rrrado7-Nov-02 2:29
rrrado7-Nov-02 2:29 
GeneralColor representation Pin
ISIS556-Nov-02 20:08
ISIS556-Nov-02 20:08 
GeneralRe: Color representation Pin
Stephane Rodriguez.6-Nov-02 20:45
Stephane Rodriguez.6-Nov-02 20:45 
GeneralRe: Color representation Pin
Christian Graus6-Nov-02 20:46
protectorChristian Graus6-Nov-02 20:46 

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.