RemoteInvoke

Ask general questions here.
atom
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

RemoteInvoke

Post by atom » Mon Nov 30, 2009 8:28 pm

Hiya

We have a MFC control that refuses to automate nicely.
The control is in a dll, that I have the .lib for

What id like to do (using VB.net), is remotely invoke methods on the control from my test
Ive not tried this before, and couldnt find good documentation for how to do it
Perhaps a few general suggestions to get me started....

Thanks

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: RemoteInvoke

Post by Support Team » Tue Dec 01, 2009 3:57 pm

The Control.InvokeRemotely only works for .NET Windows Forms controls, only those controls provide the Control capability. However, if you know how to communicate with your MFC control, i.e. by sending messages to the control, and you know the internal structure (classes, methods, ...) of the control, you should be able to create a similar functionality yourself.

We cannot provide some generic InvokeRemotely methods for MFC controls, since MFC does not support reflection, nor are the run by managed code.

Regards,
Alex
Ranorex Support Team

atom
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

Re: RemoteInvoke

Post by atom » Tue Dec 01, 2009 6:18 pm

ok thanks
So this is mainly used for say DevExpress controls?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: RemoteInvoke

Post by Support Team » Tue Dec 01, 2009 6:46 pm

atom wrote:So this is mainly used for say DevExpress controls?
Right, there are DevExpress controls that do not provide another way to get information from except through Control.InvokeRemotely. Owner drawn user controls are another example.

Regards,
Alex
Ranorex Support Team