Click here to Skip to main content
15,892,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How are the UI stuff actually drawn by Windows Pin
Maximilien11-Dec-02 3:59
Maximilien11-Dec-02 3:59 
GeneralRe: How are the UI stuff actually drawn by Windows Pin
MALCOM11-Dec-02 4:11
MALCOM11-Dec-02 4:11 
GeneralTime span format Pin
dabs11-Dec-02 3:28
dabs11-Dec-02 3:28 
GeneralCheckBook program Pin
Autunmsky11-Dec-02 3:25
Autunmsky11-Dec-02 3:25 
QuestionHow to create new DNS Zone with C/C++? Pin
Matias11-Dec-02 3:20
Matias11-Dec-02 3:20 
QuestionListCtrl: How can i make the last column visible for the user? Pin
whofmans11-Dec-02 2:36
whofmans11-Dec-02 2:36 
AnswerRe: ListCtrl: How can i make the last column visible for the user? Pin
Roger Allen11-Dec-02 2:55
Roger Allen11-Dec-02 2:55 
GeneralIVariantDictionary HELL !!!! Pin
Christian Graus11-Dec-02 0:59
protectorChristian Graus11-Dec-02 0:59 
I am quite a bit further along than I was last night, but I still have a problem:

IVariantDictionary* pVD;

cxt.Session()->get_Contents(&pVD);

if (pVD)
{
        int nCount = 0;

        pVD->get_Count(&nCount);

	for (int i = 0; i < nCount; ++i)
	{
		_variant_t vItem;
		_variant_t vIndex(i);
		_variant_t vKey;
		pVD->get_Key(vIndex, &vKey);
		pVD->get_Item(vKey, &vItem);
			
		cxt.Response()->Write(vKey);
		cxt.Response()->Write(_variant_t(" = "));
		cxt.Response()->Write(vItem);
		cxt.Response()->Write(_variant_t("<br/>"));
	}
}


All of this works, except that get_Key and get_Item both require the name of the key. Why would I want to ask for the key if I know it ? There is a get__NewEnum method, but I can't figure out how to use it. I just want to iterate through the entire collection, it surely can't be as hard as MSDN makes it look ?

Help me Obi Wan Kenobi, you're my only hope....




Christian

No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002

C# will attract all comers, where VB is for IT Journalists and managers - Michael P Butler 05-12-2002

Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
GeneralRe: IVariantDictionary HELL !!!! Pin
Stephane Rodriguez.11-Dec-02 2:02
Stephane Rodriguez.11-Dec-02 2:02 
GeneralRe: IVariantDictionary HELL !!!! Pin
Christian Graus11-Dec-02 10:05
protectorChristian Graus11-Dec-02 10:05 
GeneralRe: IVariantDictionary HELL !!!! Pin
Stephane Rodriguez.11-Dec-02 10:16
Stephane Rodriguez.11-Dec-02 10:16 
GeneralRe: IVariantDictionary HELL !!!! Pin
Rene De La Garza11-Dec-02 3:37
Rene De La Garza11-Dec-02 3:37 
GeneralRe: IVariantDictionary HELL !!!! Pin
Daniel Turini11-Dec-02 4:32
Daniel Turini11-Dec-02 4:32 
GeneralScrolling in Listbox Pin
kubbazoob11-Dec-02 0:06
kubbazoob11-Dec-02 0:06 
GeneralRe: Scrolling in Listbox Pin
Joan M11-Dec-02 5:18
professionalJoan M11-Dec-02 5:18 
GeneralRe: Scrolling in Listbox Pin
Alvaro Mendez11-Dec-02 8:43
Alvaro Mendez11-Dec-02 8:43 
QuestionHow to remove a handle HFONT from memory? Pin
Daed11-Dec-02 0:00
Daed11-Dec-02 0:00 
AnswerRe: How to remove a handle HFONT from memory? Pin
Gert Boddaert11-Dec-02 0:25
Gert Boddaert11-Dec-02 0:25 
AnswerRe: How to remove a handle HFONT from memory? Pin
Ted Ferenc11-Dec-02 0:34
Ted Ferenc11-Dec-02 0:34 
AnswerRe: How to remove a handle HFONT from memory? Pin
Daed11-Dec-02 2:58
Daed11-Dec-02 2:58 
GeneralRe: How to remove a handle HFONT from memory? Pin
Ted Ferenc11-Dec-02 5:11
Ted Ferenc11-Dec-02 5:11 
GeneralRe: How to remove a handle HFONT from memory? Pin
Ted Ferenc11-Dec-02 5:13
Ted Ferenc11-Dec-02 5:13 
GeneralRe: How to remove a handle HFONT from memory? Pin
Daed11-Dec-02 6:04
Daed11-Dec-02 6:04 
GeneralRe: How to remove a handle HFONT from memory? Pin
Ted Ferenc11-Dec-02 6:27
Ted Ferenc11-Dec-02 6:27 
GeneralProfiling Tools Pin
Steve Thresher11-Dec-02 0:00
Steve Thresher11-Dec-02 0:00 

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.