Interop followup : handling C2065 errors building C++ Exe


A customer emailed me with the feedback that my sample code with C++ Exe calling C# Dll does not build with VS 2003.

I investigated; the reason is that in VS 2003 the tlb exposes the namespace in lowercase as csdll instead of CSDll. The fix for this is to update the C++ code to use 'csdll'.

Alternately, you can add a 'no_namespace' to the #import tlb line in the .cpp file and then call all CSDll objects without using the namespace.