Click here to Skip to main content
15,914,109 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Mutex, a simple question. Pin
Scott H. Settlemier30-Oct-02 18:50
Scott H. Settlemier30-Oct-02 18:50 
GeneralRe: Mutex, a simple question. Pin
devvvy30-Oct-02 19:30
devvvy30-Oct-02 19:30 
Generaldetecting server socket reset Pin
Anonymous30-Oct-02 16:53
Anonymous30-Oct-02 16:53 
GeneralRe: detecting server socket reset Pin
Member 1006688325-Jun-14 2:53
Member 1006688325-Jun-14 2:53 
GeneralDisable Item in ListBox Pin
:_Rocket_:30-Oct-02 16:45
:_Rocket_:30-Oct-02 16:45 
GenerallParam vs wParam Pin
stevenson30-Oct-02 16:36
stevenson30-Oct-02 16:36 
GeneralRe: lParam vs wParam Pin
Anatari30-Oct-02 17:05
Anatari30-Oct-02 17:05 
GeneralRe: lParam vs wParam Pin
Paul M Watt30-Oct-02 18:14
mentorPaul M Watt30-Oct-02 18:14 
As Anatari said, you can cast any 32-bit value that you would like to fit inside of wParam and lParam. However there are a few things to be aware of.

If you are posting a message to the message queue, then you cannot use objects that were created on the stack. That is because these objects will most likely be destroyed before the posted message is processed. Instead you will need to create a mechanism to allocate the object on the heap, and destroy the object after the message has been processed.

If your item is being sent to the message queue, it will be safe to pass items that are located on the stack.


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: lParam vs wParam Pin
devvvy30-Oct-02 18:24
devvvy30-Oct-02 18:24 
GeneralMulti-threading Pin
Gary Kirkham30-Oct-02 16:31
Gary Kirkham30-Oct-02 16:31 
GeneralRe: Multi-threading Pin
Joaquín M López Muñoz30-Oct-02 20:07
Joaquín M López Muñoz30-Oct-02 20:07 
GeneralRe: Multi-threading Pin
Gary Kirkham1-Nov-02 3:35
Gary Kirkham1-Nov-02 3:35 
GeneralIE Pin
candan30-Oct-02 16:11
professionalcandan30-Oct-02 16:11 
GeneralRe: IE Pin
Stephane Rodriguez.30-Oct-02 19:33
Stephane Rodriguez.30-Oct-02 19:33 
GeneralRe: IE Pin
candan30-Oct-02 20:14
professionalcandan30-Oct-02 20:14 
GeneralRe: IE Pin
Stephane Rodriguez.30-Oct-02 20:20
Stephane Rodriguez.30-Oct-02 20:20 
GeneralRe: IE Pin
candan30-Oct-02 21:43
professionalcandan30-Oct-02 21:43 
GeneralRe: IE Pin
Stephane Rodriguez.30-Oct-02 21:54
Stephane Rodriguez.30-Oct-02 21:54 
GeneralCListCtrl / CListBox and Icons Pin
JoeSox30-Oct-02 15:39
JoeSox30-Oct-02 15:39 
GeneralRe: CListCtrl / CListBox and Icons Pin
dabs31-Oct-02 4:24
dabs31-Oct-02 4:24 
GeneralRe: CListCtrl / CListBox and Icons Pin
JoeSox31-Oct-02 4:52
JoeSox31-Oct-02 4:52 
GeneralOverlapped I/O and Completion Port :: Winsock Pin
valikac30-Oct-02 12:18
valikac30-Oct-02 12:18 
GeneralRe: Overlapped I/O and Completion Port :: Winsock Pin
User 988530-Oct-02 12:46
User 988530-Oct-02 12:46 
GeneralRe: Overlapped I/O and Completion Port :: Winsock Pin
valikac30-Oct-02 14:08
valikac30-Oct-02 14:08 
GeneralRe: Overlapped I/O and Completion Port :: Winsock Pin
Gerald Schwab30-Oct-02 12:49
Gerald Schwab30-Oct-02 12:49 

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.