+ 6
Copied from internet. By the way i didnt know that until you asked😊😊 Import in VC++: #import is for type libraries or .tlbs (COM stuff). The content of the type library is converted into C++ classes, mostly describing the COM interfaces for you automatically, and then it is included into your file. The #import directive was introduced by Microsoft as an extension to the C++ language. You can read about it at this MSDN article. The #import directive is also used with .NET / CLI stuff. Import in gcc: The import in gcc is different from the import in VC++. It is a simple way to include a header at most once only. (In VC++ and GCC you can do this via #pragma once as well) The #import directive was officially undeprecated by the gcc team in version 3.4 and works fine 99% of the time in all previous versions of gcc which support Include: #include is for mostly header files, but to prepend the content to your current file. #include is part of the C++ standard. You can read about it at this MSDN article.
28th Apr 2021, 11:07 AM
sid
sid - avatar
+ 3
I also didn't knew it until now
28th Apr 2021, 1:26 PM
I AM PJ!
I AM PJ! - avatar
0
I've also read a thread about it before, I was lazy enough to search for it back then though
29th Apr 2021, 10:15 AM
Maher Al Dayekh
Maher Al Dayekh - avatar