Click here to Skip to main content
15,905,028 members
Home / Discussions / COM
   

COM

 
GeneralRe: ItypeInfo::Invoke paramerters Pin
safee ullah12-Jun-03 19:44
safee ullah12-Jun-03 19:44 
GeneralCOM exe under win98 Pin
Ryszard Krakowiak10-Jun-03 21:20
Ryszard Krakowiak10-Jun-03 21:20 
GeneralInvokeHelper.. More info needed! Pin
harinath10-Jun-03 19:16
professionalharinath10-Jun-03 19:16 
QuestionHow call the javascript 'escape' function from C++ ? Pin
Thierry Maurel10-Jun-03 7:24
Thierry Maurel10-Jun-03 7:24 
GeneralIDispatch, ITypeInfo et al Pin
Jörgen Sigvardsson10-Jun-03 2:26
Jörgen Sigvardsson10-Jun-03 2:26 
GeneralRe: IDispatch, ITypeInfo et al Pin
Hans Ruck11-Jun-03 22:11
Hans Ruck11-Jun-03 22:11 
QuestionCOM/OLE people..how to fetch controllingunknown 's outer unknown? Pin
safee ullah10-Jun-03 1:00
safee ullah10-Jun-03 1:00 
GeneralAccessing Outlook Pin
Madmaximus9-Jun-03 6:49
Madmaximus9-Jun-03 6:49 
Hi everyone,

I get the following error message from Outlook when I try the saveas command: “Unable to coerce parameter value: Cannot translate your string”.
Code example:

szFunc = OLESTR("SaveAs");

hr = m_pDisp->GetIDsOfNames(IID_NULL,
&szFunc,
1,
LOCALE_SYSTEM_DEFAULT,
&dispID);
if (FAILED(hr))
{
cout << "GetIDsOfNames failed on SaveAs";
return;
}

CComVariant vPath(strPath.GetString());
CComVariant vType(Outlook:lMSG);

VARIANT pVal[2];

dp.cArgs = 2;
dp.cNamedArgs = 0;
dp.rgdispidNamedArgs = 0;
dp.rgvarg = pVal;
pVal[1].vt = VT_ERROR;
pVal[1].scode = DISP_E_PARAMNOTFOUND;
pVal[0].vt = vPath.vt;
pVal[0].bstrVal = vPath.bstrVal;

EXCEPINFO excep;
hr = m_pDisp->Invoke(dispID,
IID_NULL,
LOCALE_SYSTEM_DEFAULT,
DISPATCH_METHOD,
&dp,
NULL,
&excep,
NULL);
if (FAILED(hr))
{
cout << "Invoke failed on SaveAs";
ErrHandler(hr, excep);
return;
}




Any help would be greatly appreciated. Wink | ;)
Thanks,
Ken
QuestionAccessing constants via vb-script ? Pin
Brian van der Beek5-Jun-03 22:51
Brian van der Beek5-Jun-03 22:51 
AnswerRe: Accessing constants via vb-script ? Pin
Hans Ruck6-Jun-03 4:11
Hans Ruck6-Jun-03 4:11 
GeneralRe: Accessing constants via vb-script ? Pin
Anonymous6-Jun-03 4:24
Anonymous6-Jun-03 4:24 
GeneralRe: Accessing constants via vb-script ? Pin
Hans Ruck6-Jun-03 4:38
Hans Ruck6-Jun-03 4:38 
GeneralMarshalling Pin
act_x5-Jun-03 9:40
act_x5-Jun-03 9:40 
GeneralRe: Marshalling Pin
geo_m5-Jun-03 22:38
geo_m5-Jun-03 22:38 
GeneralRe: Marshalling Pin
act_x6-Jun-03 8:20
act_x6-Jun-03 8:20 
GeneralRe: Marshalling Pin
geo_m6-Jun-03 21:53
geo_m6-Jun-03 21:53 
GeneralRe: Marshalling Pin
Hans Ruck6-Jun-03 2:09
Hans Ruck6-Jun-03 2:09 
GeneralGetting the width of a webbrowser frame Pin
John Oliver4-Jun-03 21:59
John Oliver4-Jun-03 21:59 
GeneralRe: Getting the width of a webbrowser frame Pin
John Oliver4-Jun-03 23:00
John Oliver4-Jun-03 23:00 
Questionhow to resolve this? Pin
safee ullah4-Jun-03 1:36
safee ullah4-Jun-03 1:36 
AnswerRe: how to resolve this? Pin
Anonymous4-Jun-03 4:39
Anonymous4-Jun-03 4:39 
GeneralRe: how to resolve this? Pin
safee ullah4-Jun-03 20:12
safee ullah4-Jun-03 20:12 
GeneralRe: how to resolve this? Pin
Anonymous5-Jun-03 0:16
Anonymous5-Jun-03 0:16 
GeneralRe: how to resolve this? Pin
safee ullah5-Jun-03 1:29
safee ullah5-Jun-03 1:29 
Generaldispinterface question Pin
Brian van der Beek3-Jun-03 21:40
Brian van der Beek3-Jun-03 21: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.