I need to implement a simple ATL COM object that implements a specific interface for which I have been given both a .tlb file and a .idl file. The interface is very simple
if you have a interface.tlb file, you can use
#import "interface.tlb"
to include it in a .cpp file, the compiler will convert the .tlb to a C++ style interface declaration. It creates a file called interface.tlh on the fly and then #includes it automatically.
Then you use the usual C++ style code to write a class that implements the interfaces in the generated .tlh file.