what is the difference between importlib and import directive?

  • Thread starter Thread starter Yong Li (China)
  • Start date Start date
Y

Yong Li (China)

Guest
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

Continue reading...
 
Back
Top