Link to home
Start Free TrialLog in
Avatar of RonMexico
RonMexico

asked on

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

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

ASKER CERTIFIED SOLUTION
Avatar of ambience
ambience
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial