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?
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With