Solved

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

Posted on 2014-12-13
1
200 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now