Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Want to extract all the datas from a list box Pin
Richard MacCutchan16-Mar-11 12:45
mveRichard MacCutchan16-Mar-11 12:45 
GeneralRe: Want to extract all the datas from a list box Pin
Albert Holguin16-Mar-11 13:40
professionalAlbert Holguin16-Mar-11 13:40 
GeneralRe: Want to extract all the datas from a list box Pin
Richard MacCutchan16-Mar-11 13:49
mveRichard MacCutchan16-Mar-11 13:49 
GeneralRe: Want to extract all the datas from a list box Pin
Albert Holguin16-Mar-11 14:33
professionalAlbert Holguin16-Mar-11 14:33 
GeneralRe: Want to extract all the datas from a list box Pin
leorex16-Mar-11 22:47
leorex16-Mar-11 22:47 
GeneralRe: Want to extract all the datas from a list box Pin
Richard MacCutchan16-Mar-11 22:58
mveRichard MacCutchan16-Mar-11 22:58 
GeneralRe: Want to extract all the datas from a list box Pin
leorex16-Mar-11 23:08
leorex16-Mar-11 23:08 
GeneralRe: Want to extract all the datas from a list box Pin
Richard MacCutchan17-Mar-11 1:25
mveRichard MacCutchan17-Mar-11 1:25 
A couple of suggestions:
In your data retrieval loop your code might be a bit clearer if you write it as:
char* string = (char*)SendMessage(hList, LB_GETITEMDATA, (WPARAM)i, 0);

Also check that the returned pointer string still points to a valid address. When you add these data items to your list box, if they are pointers to local memory you need to ensure that they are not destroyed. Your code above does not make it clear exactly how they are created, and whether they are permanent.
I must get a clever new signature for 2011.

GeneralRe: Want to extract all the datas from a list box Pin
leorex17-Mar-11 22:52
leorex17-Mar-11 22:52 
GeneralRe: Want to extract all the datas from a list box Pin
Richard MacCutchan18-Mar-11 0:41
mveRichard MacCutchan18-Mar-11 0:41 
GeneralRe: Want to extract all the datas from a list box Pin
leorex18-Mar-11 15:50
leorex18-Mar-11 15:50 
GeneralRe: Want to extract all the datas from a list box Pin
leorex16-Mar-11 23:01
leorex16-Mar-11 23:01 
QuestionError "member function already defined or declared" Pin
Miwin Solutions16-Mar-11 0:44
Miwin Solutions16-Mar-11 0:44 
QuestionRe: Error "member function already defined or declared" Pin
Niklas L16-Mar-11 1:58
Niklas L16-Mar-11 1:58 
AnswerRe: Error "member function already defined or declared" Pin
Miwin Solutions16-Mar-11 3:41
Miwin Solutions16-Mar-11 3:41 
GeneralRe: Error "member function already defined or declared" Pin
Niklas L16-Mar-11 3:59
Niklas L16-Mar-11 3:59 
GeneralRe: Error "member function already defined or declared" Pin
Miwin Solutions17-Mar-11 7:43
Miwin Solutions17-Mar-11 7:43 
Questionhow to get all handles of process Pin
so0_lanhlung216-Mar-11 0:09
so0_lanhlung216-Mar-11 0:09 
AnswerRe: how to get all handles of process Pin
Code-o-mat16-Mar-11 0:58
Code-o-mat16-Mar-11 0:58 
GeneralRe: how to get all handles of process Pin
so0_lanhlung216-Mar-11 5:10
so0_lanhlung216-Mar-11 5:10 
AnswerRe: how to get all handles of process Pin
Nuri Ismail16-Mar-11 1:04
Nuri Ismail16-Mar-11 1:04 
GeneralRe: how to get all handles of process Pin
so0_lanhlung216-Mar-11 5:09
so0_lanhlung216-Mar-11 5:09 
GeneralRe: how to get all handles of process Pin
Nuri Ismail16-Mar-11 7:00
Nuri Ismail16-Mar-11 7:00 
QuestionHow to write a safe RPC program? Pin
Finix15-Mar-11 23:22
Finix15-Mar-11 23:22 
QuestionCan we put dot [ . ] in the name of Win32 dll Pin
pandit8415-Mar-11 21:55
pandit8415-Mar-11 21:55 

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.