I am not sure why you do not want to use the import command. this ensures that every time you compile the code, you get a header corresponding to the COM library.
Otherwise, you risk using an obsolete header if you forget to manually generate the header.
source share