?
Solved

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

Posted on 2014-12-13
1
Medium Priority
?
292 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 22

Accepted Solution

by:
ambience earned 2000 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 is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

765 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