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

C / C++ / MFC

 
QuestionGetAdaptersInfo-help me Pin
deeps_cute26-Mar-07 7:08
deeps_cute26-Mar-07 7:08 
QuestionRe: GetAdaptersInfo-help me Pin
Mark Salsbery26-Mar-07 9:27
Mark Salsbery26-Mar-07 9:27 
AnswerRe: GetAdaptersInfo-help me Pin
Mark Salsbery26-Mar-07 10:36
Mark Salsbery26-Mar-07 10:36 
GeneralRe: GetAdaptersInfo-help me Pin
deeps_cute27-Mar-07 1:45
deeps_cute27-Mar-07 1:45 
GeneralRe: GetAdaptersInfo-help me Pin
Mark Salsbery27-Mar-07 6:52
Mark Salsbery27-Mar-07 6:52 
QuestionHow to enable XP look and feel? Pin
maxmaven26-Mar-07 6:37
maxmaven26-Mar-07 6:37 
AnswerRe: How to enable XP look and feel? Pin
krmed26-Mar-07 6:55
krmed26-Mar-07 6:55 
Questionaccessing SortedList Pin
kornyjohn26-Mar-07 4:56
kornyjohn26-Mar-07 4:56 
I am trying to make use of the Containers::SortedList class for storing objects of my own class type and using an unsigned int type as the key.

I can add objects of my class each with a key value to the list no problem. However, I only seem to be able to obtain list values by using SortedList::GetByIndex. When I attempt the default[i] indexer or methods such as SortedList::IndexOfKey and SortedList::ContainsKey I get the following exception:

"An unhandled exception of type 'System.InvalidOperationException' occurred in mscorlib.dll
Additional information: Failed to compare two elements in the array."

I have no comparison method for my own class type but as the SortedList is sorted by the key value then I believe this should not matter.

Knowing that I have entered a key of 1 in the list, calling the following code results in the above exception occurring.

if(mObjectList->ContainsKey(1))
{
   ....// do stuff
}



If anyone has any ideas that would be great.
AnswerRe: accessing SortedList Pin
led mike26-Mar-07 6:12
led mike26-Mar-07 6:12 
QuestionImage in CListCtrl Pin
Aryan S26-Mar-07 4:43
Aryan S26-Mar-07 4:43 
AnswerRe: Image in CListCtrl Pin
led mike26-Mar-07 6:04
led mike26-Mar-07 6:04 
QuestionQuestion on ToolTip [modified] Pin
Super Hornet26-Mar-07 4:43
Super Hornet26-Mar-07 4:43 
QuestionImplimentation of user defined cursor & icon in application window. Pin
its_me_shailesh26-Mar-07 4:29
its_me_shailesh26-Mar-07 4:29 
AnswerRe: Implimentation of user defined cursor & icon in application window. Pin
_AnsHUMAN_ 26-Mar-07 4:34
_AnsHUMAN_ 26-Mar-07 4:34 
AnswerRe: Implimentation of user defined cursor & icon in application window. Pin
prasad_som26-Mar-07 5:38
prasad_som26-Mar-07 5:38 
QuestionRemove Null Character Pin
Programm3r26-Mar-07 3:23
Programm3r26-Mar-07 3:23 
AnswerRe: Remove Null Character Pin
Christian Graus26-Mar-07 3:48
protectorChristian Graus26-Mar-07 3:48 
QuestionHelp with vector/array Pin
klutez12326-Mar-07 3:11
klutez12326-Mar-07 3:11 
QuestionRe: Help with vector/array Pin
prasad_som26-Mar-07 3:16
prasad_som26-Mar-07 3:16 
AnswerRe: Help with vector/array Pin
klutez12326-Mar-07 3:24
klutez12326-Mar-07 3:24 
GeneralRe: Help with vector/array Pin
Maximilien26-Mar-07 3:37
Maximilien26-Mar-07 3:37 
AnswerRe: Help with vector/array Pin
David Crow26-Mar-07 4:05
David Crow26-Mar-07 4:05 
AnswerRe: Help with vector/array Pin
Stephen Hewitt26-Mar-07 13:29
Stephen Hewitt26-Mar-07 13:29 
Questionhow to get mouseposition outside window Pin
Goggelmoggel26-Mar-07 3:04
Goggelmoggel26-Mar-07 3:04 
AnswerRe: how to get mouseposition outside window Pin
Christian Graus26-Mar-07 3:08
protectorChristian Graus26-Mar-07 3: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.