c++ - Which function is being called by InvokeHelper -


in code there function call invokehelper. found on internet invokehelper used call function using dwdispid.

this call.

invokehelper(0xd, dispatch_method, vt_dispatch, (void*)&pdispatch, parms, name); 

now want debug inside. don't know function called. 0xd pointing function? there odl file in project well. invoke call odl? function?

edit:

i found these lines on top of cpp file.

// machine generated idispatch wrapper class(es) created microsoft visual c++  // note: not modify contents of file.  if class regenerated //  microsoft visual c++, modifications overwritten. 

so looks class wrapper. wrapper of class?

first need find definition of interface calling , implements idispatch. if own interface, inside .idl or .odl file within project.

inside interface definition, each method have [dispid] attribute corresponding number. need find 1 id 0xd or 13. method.

'will invoke call odl?'

yes, if object on execute call instance of class defined in odl. hard tell without seeing project, unclear sample whether 'external' object (i.e. defined , implemented elsewhere) or 1 project.

however, in case class external project, mentioned generated wrapper class. created when add external com library project - wrapper conveniently wraps com calls c++ class.

your invokehelper within method - name of method same name of method on idispatch-derived interface called. therefore, whether can debug depends on whether have code component.

usually, name of generated wrapper can point name of com component wrapped not case (it similar name of com class, there can multiple classes in same com server). find out com class is, check part of wrapper header file line like:

static clsid const clsid    = { 0x9e3c8066, 0x7f88, 0x11d1, { 0xbb, 0x57, 0x44, 0x45, 0x53, 0x54, 0x0, 0x1 } }; 

this clsid of underlying com class, , can in registry see progid of class , in dll/exe hosted. more details see here.

first 4 chapters of 'essential com' provide great intro need know com solve 90% of problems related using com components.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -