How to render the embedded OLE bitmaps properly?

  1. FAQ
  2. »
  3. Vectorization modules questions

If you're using the static libraries configuration, you must also register OdOleItemHandler in the static module map:

#if !defined(_TOOLKIT_IN_DLL_) || defined(__MWERKS__)

ODRX_DECLARE_STATIC_MODULE_ENTRY_POINT(ModelerModule);
ODRX_DECLARE_STATIC_MODULE_ENTRY_POINT(ExRasterModule);
ODRX_DECLARE_STATIC_MODULE_ENTRY_POINT(OdRasterProcessingServicesImpl);
ODRX_DECLARE_STATIC_MODULE_ENTRY_POINT(OdOleItemHandlerModuleImpl);
ODRX_DECLARE_STATIC_MODULE_ENTRY_POINT(WinGDIModule);

ODRX_BEGIN_STATIC_MODULE_MAP()
  ODRX_DEFINE_STATIC_APPLICATION(OD_T("ModelerGeometry"),  ModelerModule)
  ODRX_DEFINE_STATIC_APPLICATION(OD_T("RxRasterServices"), ExRasterModule)
  ODRX_DEFINE_STATIC_APPLICATION(OD_T("RasterProcessor"),  OdRasterProcessingServicesImpl)
  ODRX_DEFINE_STATIC_APPLICATION(OD_T("OdOleItemHandler"), OdOleItemHandlerModuleImpl)
  ODRX_DEFINE_STATIC_APPLICATION(OdWinGDIModuleName, WinGDIModule)
ODRX_END_STATIC_MODULE_MAP()

#endif

For a dynamic libraries configuration, OdOleItemHandler is loaded automatically if this .tx file is available in the program folder.