Search code examples
c++visual-c++gccimportinclude

C++ #include and #import difference


What is the difference between #include and #import in C++?


Solution

  • #import is a Microsoft-specific thing, apparently for COM or .NET stuff only.

    #include is a standard C/C++ preprocessor statement, used for including header (or occasionally other source code) files in your source code file.