Page 1 of 1

RemoteInvoke

Posted: Mon Nov 30, 2009 8:28 pm
by atom
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

Re: RemoteInvoke

Posted: Tue Dec 01, 2009 3:57 pm
by Support Team
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

Re: RemoteInvoke

Posted: Tue Dec 01, 2009 6:18 pm
by atom
ok thanks
So this is mainly used for say DevExpress controls?

Re: RemoteInvoke

Posted: Tue Dec 01, 2009 6:46 pm
by Support Team
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