Reputation: 5095
In C++ I've never seen an #import
line that imports a .exe
like the following line:
#import "C:\Program Files\Google\Google Earth\googleearth.exe"
What does the line do and how can I interpret/understand it?
Upvotes: 4
Views: 1622
Reputation: 37192
It's a VC++ extension that lets you import information from a type library.
Used to incorporate information from a type library. The content of the type library is converted into C++ classes, mostly describing the COM interfaces
So in this example, your program would have access to the COM interfaces exported by the Google Earth program without needing an explicit header file to define them (although I believe the GE COM API has actually been deprecated so this may not work with current versions of the software).
Upvotes: 10