The information in this article applies to:
SUMMARY
In addition to generating type libraries, MKTYPLIB can output a C or C++
style header file if you use the optional /h option. When you use the /h
option, MKTYPLIB creates a header file with the name specified following
the /h option. Any existing file of the same name will be overwritten
without warning. MORE INFORMATIONConsider this ODL file (MYPROJ.ODL):
If you run MKTYPLIB on this ODL file by using this command line:
the ODLFILE.H generated by MKTYPLIB looks like this:
This can cause problems when compiling source files if another header file
also uses _MYPROJ_H_ in its #ifndef wrappers. Only the first file to use
_MYPROJ_H_ will actually be included in the source file.If you are using the _<filename>_H_ convention for #ifndef wrappers, make sure none of your header files have the same name as your type library. Alternatively, use a different naming convention for the #ifndef wrappers in your header files. Additional query words: 2.00 3.50
Keywords : kbole kbNTOS350 kbSDKWin32 kbVC200 kbGrpCom kbDSupport |
Last Reviewed: October 26, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |