How to call DLL with classes?
- Posted by TheresNoTime Sep 18, 2013
- 1542 views
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 };