Solved

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

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

690 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