实际上是在文档左看右看之后可能会有的功能子集,它仍然是C API,从而直接访问德尔福:
BOOL APIENTRY DllMain (HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
TESSDLL_API void __cdecl TessDllRelease()
TESSDLL_API void *__cdecl TessDllInit (const char *lang)
TESSDLL_API int __cdecl TessDllBeginPageBPP (uinT32 xsize, uinT32 ysize, unsigned char *buf, uinT8 bpp)
TESSDLL_API int __cdecl TessDllBeginPageLangBPP (uinT32 xsize, uinT32 ysize, unsigned char *buf, const char *lang, uinT8 bpp)
TESSDLL_API int __cdecl TessDllBeginPageUprightBPP (uinT32 xsize, uinT32 ysize, unsigned char *buf, const char *lang, uinT8 bpp)
TESSDLL_API int __cdecl TessDllBeginPage (uinT32 xsize, uinT32 ysize, unsigned char *buf)
TESSDLL_API int __cdecl TessDllBeginPageLang (uinT32 xsize, uinT32 ysize, unsigned char *buf, const char *lang)
TESSDLL_API int __cdecl TessDllBeginPageUpright (uinT32 xsize, uinT32 ysize, unsigned char *buf, const char *lang)
TESSDLL_API void __cdecl TessDllEndPage (void)
TESSDLL_API ETEXT_DESC *__cdecl TessDllRecognize_a_Block (uinT32 left, uinT32 right, uinT32 top, uinT32 bottom)
TESSDLL_API ETEXT_DESC *__cdecl TessDllRecognize_all_Words (void)
TESSDLL_API void __cdecl ReleaseRecognize()
TESSDLL_API void *__cdecl InitRecognize()
TESSDLL_API int __cdecl CreateRecognize (uinT32 xsize, uinT32 ysize, unsigned char *buf)
TESSDLL_API ETEXT_DESC *__cdecl reconize_a_word (uinT32 left, uinT32 right, uinT32 top, uinT32 bottom)
我不知道这些功能是不够的,但它们可以直接访问。
谢谢你的回答,它的确有一些亮点。不过,我还是很困惑。我已经下载了Visual C++ 2010,因为我非常渴望得到版本3--所以我不妨试试它自己 - 但我对此一无所知,仍然非常困惑。就像,C,C++中的源代码是什么?我可以从Visual C++ 2010编译两种语言吗?有一个可以下载的DLL的“Windows DLL”版本 - 当然,这就是所有的Delphi需求? ...所以,从你所说的话,我不可能把自己当作一个卑微的Delphi程序员。 – 2010-10-29 17:19:04
另外,什么是'名称捣毁'? – 2010-10-29 17:28:00
Dll从未设计用于导出对象方法。名称修改通过使用特殊格式的函数名称来解决此问题。不同语言的编码技术细节各不相同(甚至一个编译器制造商到另一个编译器制造商)Delphi使用bpl格式(这是一个dll下的dll)中的名称转换。 – 2010-10-29 17:50:25