|
|
|
While MIDL.exe ships with Visual C++ 4.0, IDL files are not directly supported by the environment. To use MIDL in a Visual C++ project, you must perform the following steps.
|
midl.exe /c_ext /ms_ext /app_config $(InputPath) |
|
to the Build Command(s) list. Assuming that your IDL file is named xxx.idl, add these four files to the Output File(s) list: xxx.h, xxx_p.c, xxx_i.c, and dlldata.c. Then compile the IDL file to create the four generated files. You then must add the three C files to your project to compile and link your DLL.
|
|
© 1997 Microsoft Corporation. All rights reserved. Terms of Use. |