How to call DLL with classes?

new topic     » topic index » view thread      » older message » newer message

I need to use DLL, that have got classes. How to do it? Some info from official documentation:

OCR( 
  OCRSource(0, 0, 200, 100), 
  OCRDest(), 
  OCRDestFormat(dfText) 
); 
class OCRSource { 
 public: 
  OCRSource(); 
  OCRSource& BmpFile(const char *bmpFileName); 
  OCRSource& Wnd(HWND); 
  OCRSource& Rect(int ax, int ay, int bx, int by); 
}; 
class OCRDest { 
 public: 
  OCRDest(const char *destFileName); 
  OCRDest(); 
 
  const char *FileName; // NULL if the area is specified; otherwise, it is the destination file name 
  void *Area; // NULL if the file name is specified; otherwise, it is the memory area 
  int AreaSize; 
}; 
OCRExport OCRSuccess OCRDestFree(OCRDest&); 
enum OCRDestFormat { 
  dfText, 
  dfRtf, 
  dfVerbose, 
  dfBinary, 
  dfBmp 
}; 
new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu