Click here to Skip to main content
15,905,686 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPointer to pointers Pin
jyngem27-Mar-03 1:22
jyngem27-Mar-03 1:22 
GeneralRe: Pointer to pointers Pin
HJo27-Mar-03 4:38
HJo27-Mar-03 4:38 
GeneralRe: Pointer to pointers Pin
Iain Clarke, Warrior Programmer27-Mar-03 4:42
Iain Clarke, Warrior Programmer27-Mar-03 4:42 
GeneralBig prime numbers Pin
Jump_Around27-Mar-03 1:19
Jump_Around27-Mar-03 1:19 
GeneralRe: Big prime numbers Pin
Alastair Taylor27-Mar-03 1:49
Alastair Taylor27-Mar-03 1:49 
GeneralOwnerdraw menus and SetWindowsHookEx Pin
_Theo_27-Mar-03 0:49
_Theo_27-Mar-03 0:49 
GenerallParam member of HDITEM structure Pin
JensB27-Mar-03 0:06
JensB27-Mar-03 0:06 
GeneralRe: lParam member of HDITEM structure Pin
Remon Spekreijse27-Mar-03 0:15
Remon Spekreijse27-Mar-03 0:15 
You have two errors. First you do not add the PARAM mask when you query for the item (in the mask member of HDIITEM) and you set text to the lparam that is located on the stack which is gone when you go out of scope.

Use something like MyItem.lParam = (LPARAM) strdub(yourstring) to attach text to the lparam. Note that you have to delete it later to avoid memory leaks!
GeneralRe: lParam member of HDITEM structure Pin
JensB27-Mar-03 1:48
JensB27-Mar-03 1:48 
GeneralRe: lParam member of HDITEM structure Pin
Remon Spekreijse27-Mar-03 2:43
Remon Spekreijse27-Mar-03 2:43 
GeneralRe: lParam member of HDITEM structure Pin
Michael Dunn27-Mar-03 3:41
sitebuilderMichael Dunn27-Mar-03 3:41 
GeneralADO & ADOX Pin
rosen26-Mar-03 22:26
rosen26-Mar-03 22:26 
GeneralRe: ADO & ADOX Pin
RChin27-Mar-03 0:09
RChin27-Mar-03 0:09 
GeneralRe: ADO & ADOX Pin
Rickard Andersson2027-Mar-03 0:11
Rickard Andersson2027-Mar-03 0:11 
GeneralRe: ADO & ADOX Pin
rosen27-Mar-03 8:22
rosen27-Mar-03 8:22 
GeneralString sorting using STL Pin
Chintan26-Mar-03 21:25
Chintan26-Mar-03 21:25 
GeneralRe: String sorting using STL Pin
Mike Nordell26-Mar-03 22:09
Mike Nordell26-Mar-03 22:09 
Generaldiff style source code Pin
Colin Davidson26-Mar-03 21:23
Colin Davidson26-Mar-03 21:23 
GeneralRe: diff style source code Pin
Neville Franks26-Mar-03 22:20
Neville Franks26-Mar-03 22:20 
GeneralRe: diff style source code Pin
Pavel Klocek27-Mar-03 1:00
Pavel Klocek27-Mar-03 1:00 
GeneralRe: diff style source code Pin
Colin Davidson27-Mar-03 5:37
Colin Davidson27-Mar-03 5:37 
GeneralNon resizable Splitter window Pin
Cedric Moonen26-Mar-03 21:12
Cedric Moonen26-Mar-03 21:12 
GeneralRe: Non resizable Splitter window Pin
John R. Shaw26-Mar-03 21:38
John R. Shaw26-Mar-03 21:38 
GeneralRe: Non resizable Splitter window Pin
Cedric Moonen26-Mar-03 21:57
Cedric Moonen26-Mar-03 21:57 
GeneralRe: Non resizable Splitter window Pin
John R. Shaw27-Mar-03 9:08
John R. Shaw27-Mar-03 9:08 

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.