Click here to Skip to main content
15,921,203 members
Home / Discussions / COM
   

COM

 
Questionthe Invoke() method ? Pin
necroleak12-Sep-04 4:07
sussnecroleak12-Sep-04 4:07 
Hi,
I have this code (from a tutorial by Vipul Bansal here)
which calls a method via ms soap .

<br />
  ...<br />
  VARIANT retval;<br />
<br />
  hr = pSoapClient->Invoke( dispid, IID_NULL, <br />
                 LOCALE_USER_DEFAULT, DISPATCH_METHOD,<br />
                  &dispparams, &retval , &excepinfo, &uArgErr);<br />


The thing is that the method this code invokes, returns an object with data
that I need later in my code, but since the return value is of the VARIANT
data type, I don't know how to (propertly) convert it to the class I need or maybe set the return object in the dispparams type ?!

Here is a piece of the .wsml file.
<br />
  <operation name="CreateID"><br />
  <execute uses="...." method="CreateID" dispID="1"><br />
  <parameter callIndex="-1" name="returnval" elementName="Result" /> <br />
  <parameter callIndex="1" name="User" elementName="User" /> <br />
  <parameter callIndex="2" name="Password" elementName="Password" /> <br />
  </execute><br />
  </operation><br />

AnswerRe: the Invoke() method ? Pin
necroleak12-Sep-04 4:09
sussnecroleak12-Sep-04 4:09 
AnswerRe: the Invoke() method ? Pin
Jörgen Sigvardsson12-Sep-04 9:08
Jörgen Sigvardsson12-Sep-04 9:08 
GeneralCreating A sample COM with VB6.0 Pin
Shanazhi11-Sep-04 2:38
Shanazhi11-Sep-04 2:38 
GeneralAdding ActiveX control in ActiveX control Project Pin
Muhammad Azam9-Sep-04 4:14
Muhammad Azam9-Sep-04 4:14 
GeneralRe: Adding ActiveX control in ActiveX control Project Pin
herbert_chow10-Sep-04 7:46
herbert_chow10-Sep-04 7:46 
GeneralRe: Adding ActiveX control in ActiveX control Project Pin
Muhammad Azam12-Sep-04 18:51
Muhammad Azam12-Sep-04 18:51 
GeneralThread Safety Problem Pin
.Suchit9-Sep-04 3:17
.Suchit9-Sep-04 3:17 
GeneralRe: Thread Safety Problem Pin
Jörgen Sigvardsson12-Sep-04 9:21
Jörgen Sigvardsson12-Sep-04 9:21 
GeneralRe: Thread Safety Problem Pin
.Suchit14-Sep-04 4:06
.Suchit14-Sep-04 4:06 
QuestionHow to create a autofill toolbar like of google Pin
akszn8-Sep-04 23:09
akszn8-Sep-04 23:09 
GeneralCapture event Pin
andy_cn8-Sep-04 22:15
andy_cn8-Sep-04 22:15 
Generalobject of MFC class in ATL Dll Pin
zahid_ash8-Sep-04 20:59
zahid_ash8-Sep-04 20:59 
Generala problem with connecting evevts to sink Pin
andy_cn8-Sep-04 17:05
andy_cn8-Sep-04 17:05 
GeneralIAddresBook problem Pin
Irek Zielinski7-Sep-04 7:50
Irek Zielinski7-Sep-04 7:50 
GeneralReterive OCX properties from handle Pin
mohandasgandhiG6-Sep-04 23:24
mohandasgandhiG6-Sep-04 23:24 
GeneralWrapping an existing COM object Pin
lemur26-Sep-04 4:43
lemur26-Sep-04 4:43 
GeneralRe: Wrapping an existing COM object Pin
Jörgen Sigvardsson6-Sep-04 8:56
Jörgen Sigvardsson6-Sep-04 8:56 
GeneralRe: Wrapping an existing COM object Pin
lemur26-Sep-04 20:28
lemur26-Sep-04 20:28 
GeneralRe: Wrapping an existing COM object Pin
lemur26-Sep-04 21:15
lemur26-Sep-04 21:15 
GeneralATL dialog with ActiveX control inside Windows service Pin
6-Sep-04 2:42
suss6-Sep-04 2:42 
GeneralDiffernce between ATL DLL, ATL Service and ATL EXE Pin
zahid_ash5-Sep-04 20:20
zahid_ash5-Sep-04 20:20 
GeneralRe: Differnce between ATL DLL, ATL Service and ATL EXE Pin
Jörgen Sigvardsson6-Sep-04 9:02
Jörgen Sigvardsson6-Sep-04 9:02 
Generalregistering windows service Pin
prasadbs5-Sep-04 17:42
prasadbs5-Sep-04 17:42 
GeneralDo I need to destory a SAFEARRAY that is passed in as an argument Pin
timtanbin3-Sep-04 19:57
timtanbin3-Sep-04 19:57 

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.