Click here to Skip to main content
15,916,030 members
Home / Discussions / COM
   

COM

 
QuestionCOleDispatchDriver.InvokeHelper PROBLEM Pin
Ro_land7-Nov-05 0:16
Ro_land7-Nov-05 0:16 
AnswerRe: COleDispatchDriver.InvokeHelper PROBLEM Pin
Lim Bio Liong9-Nov-05 23:37
Lim Bio Liong9-Nov-05 23:37 
GeneralRe: COleDispatchDriver.InvokeHelper PROBLEM Pin
Ro_land13-Nov-05 9:51
Ro_land13-Nov-05 9:51 
GeneralRe: COleDispatchDriver.InvokeHelper PROBLEM Pin
Lim Bio Liong13-Nov-05 23:26
Lim Bio Liong13-Nov-05 23:26 
AnswerRe: COleDispatchDriver.InvokeHelper PROBLEM Pin
Vi211-Nov-05 4:35
Vi211-Nov-05 4:35 
GeneralRe: COleDispatchDriver.InvokeHelper PROBLEM Pin
Ro_land13-Nov-05 9:43
Ro_land13-Nov-05 9:43 
QuestionIActveScript and events of run-time object Pin
De Nardis Andrea7-Nov-05 0:13
De Nardis Andrea7-Nov-05 0:13 
QuestionHow to init this VARIANT? Pin
Lane Yu6-Nov-05 7:12
Lane Yu6-Nov-05 7:12 
Now I'm trying to use IFolderCollection:

struct __declspec(uuid("c7c3f5a3-88a3-11d0-abcb-00a0c90fffc0"))
IFolderCollection : IDispatch
{
...
virtual HRESULT __stdcall get_Item (
VARIANT Key,
struct IFolder * * ppfolder ) = 0;
...
}

In my code, I have got an interface of IFolderCollection. And I want to enumerate the sub folders:

LONG nCount = qSubFolders->GetCount();
...

//

for (INT nLoop = 1; nLoop <= nCount; nLoop++)
{
CComVariant vtKey(nLoop);
vtKey.ChangeType(??????????); //Which type is "Key" type?

CComPtr<IFolder> qFolder;
qSubFolders->get_Item(vtKey, &qFolder); //Always fail!

if (qFolder == NULL)
{

}
...


In VB, I can write "Curfolder = Subfolders.Item(1)", but what about C++?





-- modified at 23:27 Sunday 6th November, 2005
AnswerRe: How to init this VARIANT? Pin
De Nardis Andrea7-Nov-05 0:23
De Nardis Andrea7-Nov-05 0:23 
GeneralRe: How to init this VARIANT? Pin
Lane Yu7-Nov-05 1:19
Lane Yu7-Nov-05 1:19 
GeneralRe: How to init this VARIANT? Pin
De Nardis Andrea7-Nov-05 4:24
De Nardis Andrea7-Nov-05 4:24 
GeneralRe: How to init this VARIANT? Pin
Lane Yu7-Nov-05 6:56
Lane Yu7-Nov-05 6:56 
GeneralRe: How to init this VARIANT? Pin
De Nardis Andrea7-Nov-05 7:11
De Nardis Andrea7-Nov-05 7:11 
QuestionQuestion on launch/access permissions Pin
Steve S5-Nov-05 3:58
Steve S5-Nov-05 3:58 
Questionfatal Error occured in developing com component in c++ Pin
rkumar_mv4-Nov-05 19:45
rkumar_mv4-Nov-05 19:45 
AnswerRe: fatal Error occured in developing com component in c++ Pin
User 2155977-Nov-05 13:42
User 2155977-Nov-05 13:42 
QuestionProblem with OleCreateLinkToFile() Pin
Jürgen Jung2-Nov-05 22:48
Jürgen Jung2-Nov-05 22:48 
GeneralRe: Problem with OleCreateLinkToFile() Pin
Jörgen Sigvardsson3-Nov-05 6:36
Jörgen Sigvardsson3-Nov-05 6:36 
QuestionWhat I should do to get 2 doubles numbers from a COM server Pin
razvandynalog2-Nov-05 6:50
razvandynalog2-Nov-05 6:50 
AnswerRe: What I should do to get 2 doubles numbers from a COM server Pin
Gizzo3-Nov-05 7:32
Gizzo3-Nov-05 7:32 
GeneralRe: What I should do to get 2 doubles numbers from a COM server Pin
razvandynalog4-Nov-05 6:02
razvandynalog4-Nov-05 6:02 
QuestionHow to use a VC# COM (with .dll and .tlb) files in VC++6 Pin
nonothing2-Nov-05 6:34
nonothing2-Nov-05 6:34 
QuestionDCOM and memory management: ??? Pin
morenz1-Nov-05 23:04
morenz1-Nov-05 23:04 
AnswerRe: DCOM and memory management: ??? Pin
Gizzo3-Nov-05 7:37
Gizzo3-Nov-05 7:37 
GeneralRe: DCOM and memory management: ??? Pin
morenz10-Nov-05 3:53
morenz10-Nov-05 3:53 

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.