"eSapient" <eS******@discussions.microsoft.comwrote in message
news:7F**********************************@microsof t.com...
>I have a case where a C# dll is being consumed by an unmanaged C++
executable. One of the dll methods returns a StringCollection object. What
are the requirements for the C++ executable in terms of .h, .tlb files to
be
included/imported, and the syntax for consuming the StringCollection
object?
You can use .NET via COM, see "Runtime Callable Wrapper". However that
might not be the easiest way to go.
Is the .dll a hard dependency (exe can't work without it) or a soft
dependency (lose some features but press forward)?
If it is a hard dependency, then your exe is actually dependent on the .NET
framework (exe needs dll needs framework). In that case, see if your exe
works correctly when built with /clr.
>
TIA.