I am building a COM application using as a guide the "Business Unit"
example included in Ch 9 of Grimes's book : "Beginning ATL 3 COM
I need to access the properties of the items of "DeveloperCollection" from
within "CBusinessUnit". For example, I have added a method:
m_pManager->get_Name(&Name); // works fine
m_pDevelopers->get_Count(&Count); // returns Count as it should
m_pDevelopers->get_Item(Count, &pVal); //returns pVal
pVal is of type VT_DISPATCH. How can I access the Name and the other
attributes of the items in the collection from pVal? Where in pVal is the
I tried e.g pval.pdispVal->get_Name(&Name) but it does not work.
Any ideas? I would appreciate any input and suggestions
Thank you in advance