You can separate implementation and definition using the "no_implementation" and "implementation_only" parameters in #import. They generate .tlh files (type library header) and .tli files (library type).
I usually put the following in a header file (e.g. stdafx.h):
#import "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorlib.tlb" no_implementation
And the following to the .cpp file (e.g. stdafx.cpp):
#import "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorlib.tlb" implementation_only
source share