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

C / C++ / MFC

 
QuestionHow to display a tip when the cursor moves into a pane ? Pin
Wenrich7-Nov-02 16:29
Wenrich7-Nov-02 16:29 
GeneralWindowProc Pin
Naoh7-Nov-02 16:03
Naoh7-Nov-02 16:03 
GeneralFiles Pin
Selevercin7-Nov-02 15:46
Selevercin7-Nov-02 15:46 
GeneralRe: Files Pin
Christian Graus7-Nov-02 16:08
protectorChristian Graus7-Nov-02 16:08 
GeneralRe: Files Pin
Michael Dunn7-Nov-02 17:51
sitebuilderMichael Dunn7-Nov-02 17:51 
GeneralRe: Files Pin
Christian Graus7-Nov-02 18:25
protectorChristian Graus7-Nov-02 18:25 
GeneralRe: Files Pin
Selevercin9-Nov-02 11:46
Selevercin9-Nov-02 11:46 
Generalpass a struct through message to a thread Pin
stevenson7-Nov-02 14:18
stevenson7-Nov-02 14:18 
hi,

POST STATUS: UPDATED

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


I use heap instead of frame, for heap allocate memory for the program, therefore the memory will exist until one explitely delete it.

And I can pass an int, but can't pass a struct


How to transfer data correctly?


Extreme programming. Do the No.1
GeneralRe: pass a struct through message to a thread Pin
ian mariano7-Nov-02 19:18
ian mariano7-Nov-02 19:18 
Questionwin32 hooking tutorial?? Pin
Anonymous7-Nov-02 14:12
Anonymous7-Nov-02 14:12 
AnswerRe: win32 hooking tutorial?? Pin
Rene De La Garza7-Nov-02 14:41
Rene De La Garza7-Nov-02 14:41 
GeneralDisable symbols loaded or not found messages Pin
Anonymous7-Nov-02 14:05
Anonymous7-Nov-02 14:05 
GeneralCHtmlView and Excel documents Pin
Ernesto Perales Soto7-Nov-02 11:53
Ernesto Perales Soto7-Nov-02 11:53 
Generalcall W32 API from MFC app Pin
Errol7-Nov-02 11:47
Errol7-Nov-02 11:47 
GeneralRe: call W32 API from MFC app Pin
Ernesto Perales Soto7-Nov-02 11:55
Ernesto Perales Soto7-Nov-02 11:55 
GeneralRe: call W32 API from MFC app Pin
Carlos Antollini7-Nov-02 11:56
Carlos Antollini7-Nov-02 11:56 
GeneralRe: call W32 API from MFC app Pin
Christian Graus7-Nov-02 12:02
protectorChristian Graus7-Nov-02 12:02 
GeneralMore info ?? Pin
Errol7-Nov-02 12:14
Errol7-Nov-02 12:14 
GeneralRe: More info ?? Pin
Ernesto Perales Soto7-Nov-02 12:50
Ernesto Perales Soto7-Nov-02 12:50 
GeneralRe: More info ?? Pin
Rene De La Garza7-Nov-02 13:41
Rene De La Garza7-Nov-02 13:41 
GeneralWindow Initialize in Retored Mode :: MFC Pin
valikac7-Nov-02 10:35
valikac7-Nov-02 10:35 
GeneralCryptoAPI problem, help needed Pin
rszymans7-Nov-02 10:01
rszymans7-Nov-02 10:01 
GeneralRe: CryptoAPI problem, help needed Pin
Andreas Saurwein7-Nov-02 11:07
Andreas Saurwein7-Nov-02 11:07 
GeneralRe: CryptoAPI problem, help needed Pin
Anonymous7-Nov-02 12:14
Anonymous7-Nov-02 12:14 
QuestionHow to change data format between unsigned char and CString? Pin
ooosawaddee37-Nov-02 9:40
ooosawaddee37-Nov-02 9:40 

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.