Solved

MFC program: How do I figure out what object an InvokeHelper is calling?

Posted on 2014-12-13
1
247 Views
Last Modified: 2014-12-18
So, I've inherited an MFC application compiled with VS2008, none of the original authors are around.  I've forgotten a lot about COM and MFC, but I have to reverse engineer it and make some modifications.  Some of the functionality is seems to be executed via InvokeHelper calls.  Such as the one below.  

I think this accesses a COM object, correct?   So somewhere somehow the application must be pointed at this object, maybe with a complementary call?  Or a reference?  Can someone tell me where in an MFC program I can figure out what COM object this is calling?

Thanks, I think if someone answers this specific question then maybe the rest of it will come back to me.  :)

(And please, I appreciate all answers but don't point me towards general doc on COM interop, I'm sure that would take me hours to pore through, and I'm looking for a quick answer to this specific question.  Thanks.)

void CLsDisplay::StartAnimation(double dAngleRangeDeg, long nFrames, long nSeconds)
{
	static BYTE parms[] =VTS_R8 VTS_I4 VTS_I4;
	InvokeHelper(0x9, DISPATCH_METHOD, VT_EMPTY, NULL, parms, dAngleRangeDeg, nFrames, nSeconds);
}

Open in new window

0
Comment
Question by:RonMexico
1 Comment
 
LVL 22

Accepted Solution

by:
ambience earned 500 total points
ID: 40500024
AFAIR, there should be a ProgId or ClassID somewhere in the constructor of that wrapper class, or maybe its provided externally. You can use the OLE Object Viewer to view that object's typelib and interface.
0

Featured Post

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question