You can reference a .exe but not from within Visual Studio. You have to use the command line compiler such as
csc /r:mtexe.exe app.cs
However this will not solve your problem as the .exe assembly will simply be loaded into the process of the other application. You need it to run as a separate process.
I guess you need dll to be autostarted so:
you could repackage the code as a windows service and have it autostart and use remoting to communicate with it.
you could do the same using ASP.NET as a remoting host rather than a service
you could change the code so that the components in question derive from System.EnterpriseServices.ServicedComponent and set the application to be a server one so it loads into a copy of DllHost.exe (of course this will mean having McAffee having to trust all components running under DllHost.exe). Then DCOM will be used as the communication protocol rather than remoting.
Regards
Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog http://www.dotnetconsult.co.uk
Currently we have clientMail.dll in dot net. All the dot net exes use it
to send e-mail.
However, the above will not work with mcafee 8 unless adding into the
exceptions all the apps exe.
I would like only to make a clientMail.dll to exe so I can only add one
exception to the list
I can add
[STAThread]
public static void Main()
{
}
and conmpile clientMail to exe but the apps do not let me add a
reference to exe even though is build through dot net
Any ideas how to make it work?
Thanks
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.1 - Release Date: 19/01/2005
[microsoft.public.dotnet.languages.csharp]