Msado15.tlh not created after import of msado15.dll

I'm trying to use / MP (multi-process build) to enable multi- process compilation, however it conflicts with C # import, so I try the workaround suggested in Replace for #import in Visual C ++ :

For someone else, tripping over this on google:

  • create a separate static lib project
  • just set up so you can put the #import statement in the lib project
  • make your main project dependent on the lib project (to ensure the correct build order)
  • add a temporary lib project creation folder to the inclusion path for the main project
  • #include generated .tlh files in which you made #import
  • turn on the / MP switch and lose your coffee break time ...

I tricked the steps, however "msado15.tlh" was not generated.

That's what I'm doing:

  • create a static library project AdoImport
  • Add a header file AddImport.hin the project AdoImport, contains only one line:#import "C:/Program Files/Common Files/System/ado/msado15.dll" rename("EOF", "adoEOF") rename("BOF", "adoBOF")
  • compilation

I expect it to msado15.tlhbe generated in the AdoImportproejct folder Debug, but it is not found. Compilation reports success and generates only AdoImport.lib.

How can I create msado15.tlhso that my main project can include it?

0
source share
2 answers

just in case anyone hits it on google as i solved it -

put the line #import "C:/Program Files/Common Files/System/ado/msado15.dll" rename("EOF", "adoEOF") rename("BOF", "adoBOF")in the stdafx.hproject AdoImportso that it always compiles.

AdoImport " " ( " " β†’ " " β†’ "" ) .

+1

. , VS2015, - .

, import

#import "C:/Program Files/Common Files/System/ado/msado15.dll" ( "EOF", "adoEOF" ) ( "BOF", "adoBOF" )

Precompiled Header File StdAfx.h StdAfx.cpp, ​​ #import "..cannot open msado15.tlh". , . , . .

, .

+1

All Articles