c++ - Possible to use precompiled headers with MIDL generated files? -


We have a project that uses the MIDL tool to create specific header / ID and proxy files. Those files are compiled and connected to the rest of the project, which uses a post build phase which calls the mailmail.

Is it possible to use precompiled headers with Thomas IDL generated files? How can I inject the #include "stdafx-h" and delete the other included headers? Use

(include Force): "This option has the same effect in which the command line The file can be specified with double quotation marks in the #include directive on the first line of each source file, in the CL environment variable, or in the command file. "

This will not delete other headers, But it is not necessary to use precompelled header ... all are Fear that you must include them want to Preekanpail stdafx.h. After this, the file included in the file is provided, it will not be a problem when they are involved in the sources.

Example

generated A.cpp file:

  #include < A.h> # Include & lt; B.h> // The rest of the code code  

Assume that you want to pre-compile a.h and b.h . Then you create the file stdafx.h:

  #include & lt; A.h> # Include & lt; B.h>  

And then you use the / FI option to include this file in a.cpp as the first file in stdafx.h. If the file is ah and bh , then there is no issue left in a.cpp ...


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -