home *** CD-ROM | disk | FTP | other *** search
- #ifndef _OLECOMP_HPP
- #define _OLECOMP_HPP
-
- #if defined( _DEBUG ) && defined( new )
- # undef new
- # undef delete
- # define _REDEFINE_WNEW
- #endif
-
- #pragma warning 549 9 // sizeof contains compiler generated info
- #include <wcvector.h>
-
- #ifdef _REDEFINE_WNEW
- # include "wnew.hpp"
- #endif
-
- typedef WCValOrderedVector<WFilePath> FileVector;
-
- typedef enum {
- GI_PROCESS_TYPELIB,
- GI_FILE_UPDATE
- } GEN_INFO;
-
- typedef void WCMDEF (*GenProgressCB)( GEN_INFO, void *, void * );
-
- class MDOleInterface : public WObject {
- public:
- virtual WInt GenerateOleComponent( const WString & clsid,
- const WString & version,
- const WFilePath & dest,
- FileVector & dt_files,
- FileVector & rt_files,
- WBool enummacros_option,
- WBool enumprefix_option,
- WBool oleparm_option,
- WBool hidden_option,
- WBool rebuild_option,
- const WString & prefix_option ) = 0;
- virtual void SetGenProgressCB( GenProgressCB, void * ) = 0;
- };
-
- #define _GetMDOleInterfaceFunc "_GetMDOleInterface@0"
- #define _ReleaseMDOleInterfaceFunc "_ReleaseMDOleInterface@4"
-
- extern "C" {
- typedef MDOleInterface * __export __stdcall (*GetMDOleInterfaceFunc)();
- typedef void __export __stdcall (*ReleaseMDOleInterfaceFunc)( MDOleInterface * );
- };
-
- #endif // _OLECOMP_HPP
-