Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

C++ <-> C# communication

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Giovanni Dicanio - 04 Mar 2008 09:05 GMT
Hi,

I'm going to write a shell extension, and for this purpose I use C++ and
ATL.

The shell extension should then show a GUI window, and the user will
interact with the controls contained in this window.
I'd like to develop this GUI part in C# (I'd like to write two versions, one
using WinForm and another one using WPF, to do some comparisons).

However, the problem is the communication between the C++/ATL part and the
C# GUI part.
I thought about passing some data using the command line, i.e.

- make the C# GUI part a standalone .exe
- the C++/ATL shell extension calls the C# GUI .exe passing data using
command line

My questions are:

1. Does it exist a limit to the total length of command line string?

2. Is there another way to do communication between C++/ATL and C# .exe ?
(e.g. if I had to pass binary data and not text data, the command line
technique would not be good)

(Another option would be to write the shell extension as single C++/ATL
module, using WTL for the GUI part.)

Thanks in advance,
Giovanni
SvenC - 04 Mar 2008 10:41 GMT
Hi Giovanni,

> I'm going to write a shell extension, and for this purpose I use C++
> and ATL.
[quoted text clipped - 4 lines]
> versions, one using WinForm and another one using WPF, to do some
> comparisons).

Microsoft does not support writing shell extensions in .Net.
You will need to implement your C# GUI as standalone exe and
use some inter process communication like COM, remoting or similar
to comunicate with your ATL shell extension.

--
SvenC

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.