Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

what is the difference between importlib and import directive?

$
0
0

Hi,

In my project I saw a lot of places that use the directive "importlib" and "#import". Code written like below:

[importlib("module name")]

or

#import "module name" no_namespace raw_interface_only no_registry

I searched the MSDN but could not figure out the differences between the two directives. Can anyone help clarify a bit?

By the way, I also saw one place that the two direcitves are used together to import same library, like below:

[importlib("interface.dll)];
#import "interface.dll" no_namespace raw_interfaces_only

It looks quite confused to me. Should only one statement is enough to import the types, right?

Thanks a lot


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>