#import <somedll.dll> no_namespace
-
-
It was always a good practice to first search for the answer in the documentation, which is in that case (Microsoft) just MSDN! if not found or not understood - then welcome to this or/and many other Forums with the extended info what exactly was not understood: [#import Directive (C++) | Microsoft Docs](https://docs.microsoft.com/en-us/cpp/preprocessor/hash-import-directive-cpp)
-
This is a COM (Component Object Model) thing. Basically the COM runtime takes type library information embedded in the COM DLL and creates headers and helper methods including some exception handling so that client C++ programs can call into the DLL.
«_Superman_» _I love work. It gives me something to do between weekends.
_Microsoft MVP (Visual C++) (October 2009 - September 2013)