home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 10 / ioProg_10.iso / soft / optima / hpp.z / OLECOMP.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-07  |  1.3 KB  |  51 lines

  1. #ifndef _OLECOMP_HPP
  2. #define _OLECOMP_HPP
  3.  
  4. #if defined( _DEBUG ) && defined( new )
  5. #   undef new
  6. #   undef delete
  7. #   define _REDEFINE_WNEW
  8. #endif
  9.  
  10. #pragma warning 549 9     // sizeof contains compiler generated info
  11. #include <wcvector.h>
  12.  
  13. #ifdef _REDEFINE_WNEW
  14. #   include "wnew.hpp"
  15. #endif
  16.  
  17. typedef WCValOrderedVector<WFilePath> FileVector;
  18.  
  19. typedef enum {
  20.     GI_PROCESS_TYPELIB,
  21.     GI_FILE_UPDATE
  22. } GEN_INFO;
  23.  
  24. typedef void WCMDEF (*GenProgressCB)( GEN_INFO, void *, void * );
  25.  
  26. class MDOleInterface : public WObject {
  27.     public:
  28.     virtual WInt GenerateOleComponent( const WString & clsid,
  29.                        const WString & version,
  30.                        const WFilePath & dest,
  31.                        FileVector & dt_files,
  32.                        FileVector & rt_files,
  33.                        WBool enummacros_option,
  34.                        WBool enumprefix_option,
  35.                        WBool oleparm_option,
  36.                        WBool hidden_option,
  37.                        WBool rebuild_option,
  38.                        const WString & prefix_option ) = 0;
  39.     virtual void SetGenProgressCB( GenProgressCB, void * ) = 0;
  40. };
  41.  
  42. #define _GetMDOleInterfaceFunc "_GetMDOleInterface@0"
  43. #define _ReleaseMDOleInterfaceFunc "_ReleaseMDOleInterface@4"
  44.  
  45. extern "C" {
  46.     typedef MDOleInterface * __export __stdcall (*GetMDOleInterfaceFunc)();
  47.     typedef void __export __stdcall (*ReleaseMDOleInterfaceFunc)( MDOleInterface * );
  48. };
  49.  
  50. #endif // _OLECOMP_HPP
  51.