Hi Jon,
One of my colleagues has found a way to add a .exe reference to the DLL
project:
You could use the #using in MC++. Something like:
#using <myApp.exe>
Or manually add it to the compiler. Something like:
/Fu myApp.exe
He did a quick test and in MC++ (2003) and can add a reference to a C# EXE
through the Add References dialog. It seems to build and work fine.
Then however you will have a problem when you use the MC++ DLL in C#
because C#'s Add Reference Dialog does not allow you to add the exe and
does not copy it as a dependent assembly. If you manually copy over the
exe to the C# bin directory then everything seems to work fine.
By the way, he has a sample project that illustrated this, if you want, I
can email it to you.
Thanks!
Best regards,
Gary Chang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------