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?
source
share