RE: Driving a C# application using an unmanaged MFC application



Hi Steven
Thanks for your reply. Yes, both of the applications are ours so we can
modify the code as required.

Best regards

Marek

""Steven Cheng"" wrote:

Hi Marek

Based on the issue description you provided, I think what you need to do is
make the MFC application communicate with (or event control) another C#
application, correct?

For communication between two processes, those general inter-process
communication approach should work. And in .NET framework, there are some
.net specific approach such as remoting or webservice. However, since one
of your application is MFC, you may consider some other more raw approach
such as sockets communication or windows message...

Are both of the two applications' code controled at your side(so that you
can determine the way they will communication)?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
From: =?Utf-8?B?TWFyZWs=?= <dnv21@xxxxxxxxxxxxxxxx>
Subject: Driving a C# application using an unmanaged MFC application
Date: Thu, 13 Mar 2008 03:06:02 -0700


Hi
We have a C# application that we need to "drive" using an MFC application.

The kinds of things we need to do are to instantiate the C# application
and
tell it to load a certain file and then take certain actions. It would
also
be good if the C# application could somehow post/fire messages/events back
to
the MFC application. I know that a lot of this kind of thing can be done
using StartProcess, SendKeys etc. nad that COM might be an option, but I
wanted some feedback as to the best way of tackling this problem.

Best regards

Marek



.



Relevant Pages

  • RE: Driving a C# application using an unmanaged MFC application
    ... For communication between two processes, ... of your application is MFC, you may consider some other more raw approach ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: ICON not correct
    ... I can see the attachment here in Outlook Express. ... Not sure if doing an MFC app is the difference but mine is non MFC. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.win32.programmer.ui)
  • RE: UserControl hosting RichTextBox control doesnt work correctly in MFC dialog
    ... you have a WinForm UserControl and host it in an ... MFC application, but the UserControl doesn't work properly in an MFC ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Building VC++ 8.0 code on a machine without Visual Studio 2005
    ... solution without buying another VS 2005 license (we do use MFC in our Visual ... cobble something together between the older SDK and the new SDK, ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.vc)
  • Re: VC++ 2005 problem creating an ActiveX in a secondary Thread
    ... Further discussion with other MFC experts confirms my suspicion. ... It is a mistake to pass a pointer of a CWnd-derived class across a ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.vc)