0

I'm working in a C++ native project and I need to import a .tbl file

#import  "C:\packages\S...\xx.tlb" raw_interfaces_only, named_guids, no_namespace

But Visual studio 2019 always ask for a .tlh file that I don't have, how can I use tbl file without the tlh file?

Ðаn
  • 10,934
  • 11
  • 59
  • 95
UserEsp
  • 415
  • 1
  • 7
  • 29
  • 2
    The [`import` directive](https://learn.microsoft.com/en-us/cpp/preprocessor/hash-import-directive-cpp?view=msvc-160) (which is specific to Visual Studio) [*creates*](https://learn.microsoft.com/en-us/cpp/preprocessor/hash-import-directive-cpp?view=msvc-160#_predir_the_23import_directive_header_files_created_by_import) the header. No idea why your IDE then fails to locate it. – DevSolar Jul 23 '21 at 12:19
  • "*always ask for a .tlh file*" Please quote the *exact* error message. – dxiv Jul 26 '21 at 02:21

0 Answers0