Click here to Skip to main content
15,896,606 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCan anyone give me some suggestion Pls..? Pin
kokilag8-Jun-09 8:05
kokilag8-Jun-09 8:05 
QuestionRe: Can anyone give me some suggestion Pls..? Pin
CPallini8-Jun-09 8:16
mveCPallini8-Jun-09 8:16 
AnswerRe: Can anyone give me some suggestion Pls..? Pin
«_Superman_»8-Jun-09 16:05
professional«_Superman_»8-Jun-09 16:05 
You should associate the number and value to the name when populating the list box.

Here's how you can do it.
Create a structure having one member for number and another for name.
When reading the first name, create an instance of the structure and initialize its members.
For example when "abc" is read, the created structure instance will contain "1" and "ee34".

Use the CListBox::SetItemDataPtr to associate the structure instance to the index where "abc" is inserted.

To retrieve it you would then use CListBox::GetItemDataPtr to get an instance of the structure.

«_Superman
I love work. It gives me something to do between weekends.

Questiontrouble building with Visual Studio 5.0 in Citrix - compatability issues??? Pin
AmVal8-Jun-09 5:03
AmVal8-Jun-09 5:03 
AnswerRe: trouble building with Visual Studio 5.0 in Citrix - compatability issues??? Pin
Stuart Dootson8-Jun-09 7:51
professionalStuart Dootson8-Jun-09 7:51 
GeneralRe: trouble building with Visual Studio 5.0 in Citrix - compatability issues??? Pin
AmVal8-Jun-09 8:30
AmVal8-Jun-09 8:30 
GeneralRe: trouble building with Visual Studio 5.0 in Citrix - compatability issues??? Pin
Stuart Dootson8-Jun-09 9:29
professionalStuart Dootson8-Jun-09 9:29 
GeneralRe: trouble building with Visual Studio 5.0 in Citrix - compatability issues??? Pin
AmVal11-Jun-09 3:55
AmVal11-Jun-09 3:55 
GeneralRe: trouble building with Visual Studio 5.0 in Citrix - compatability issues??? Pin
Stuart Dootson11-Jun-09 3:57
professionalStuart Dootson11-Jun-09 3:57 
QuestionGDI + drawing Pin
transoft8-Jun-09 4:49
transoft8-Jun-09 4:49 
AnswerRe: GDI + drawing Pin
Cedric Moonen8-Jun-09 4:59
Cedric Moonen8-Jun-09 4:59 
GeneralRe: GDI + drawing [modified] Pin
transoft8-Jun-09 5:06
transoft8-Jun-09 5:06 
AnswerRe: GDI + drawing Pin
Sarath C8-Jun-09 8:51
Sarath C8-Jun-09 8:51 
Questionhow to interpret the following code snippet Pin
pandit848-Jun-09 4:44
pandit848-Jun-09 4:44 
QuestionRe: how to interpret the following code snippet Pin
led mike8-Jun-09 5:14
led mike8-Jun-09 5:14 
AnswerRe: how to interpret the following code snippet Pin
CPallini8-Jun-09 6:44
mveCPallini8-Jun-09 6:44 
QuestionControlling bass and treble on an audio device Pin
dptalt8-Jun-09 4:18
dptalt8-Jun-09 4:18 
QuestionUsed cluster number of a hard disk partition come continuously...Is it correct..? Pin
krish_kumar8-Jun-09 4:08
krish_kumar8-Jun-09 4:08 
QuestionHlep me!A problem of AttachDispatch method~ Pin
bjwu8-Jun-09 2:42
bjwu8-Jun-09 2:42 
Questionpassing pointers to function Pin
hrishiS8-Jun-09 2:26
hrishiS8-Jun-09 2:26 
AnswerRe: passing pointers to function Pin
«_Superman_»8-Jun-09 2:40
professional«_Superman_»8-Jun-09 2:40 
GeneralRe: passing pointers to function Pin
Stuart Dootson8-Jun-09 2:43
professionalStuart Dootson8-Jun-09 2:43 
GeneralRe: passing pointers to function Pin
«_Superman_»8-Jun-09 2:53
professional«_Superman_»8-Jun-09 2:53 
GeneralRe: passing pointers to function Pin
Stuart Dootson8-Jun-09 3:22
professionalStuart Dootson8-Jun-09 3:22 
GeneralRe: passing pointers to function Pin
«_Superman_»8-Jun-09 3:40
professional«_Superman_»8-Jun-09 3: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.