【发布时间】:2012-10-18 21:24:27
【问题描述】:
我已经用 VC++ 编译了一个 Hunspell DLL,其中包含一个类... 现在我想在 Builder C++ 2006 中调用那个 DLL 来使用它的功能……我该怎么做呢?
我试过了:
typedef Hunspell * (CALLBACK *fpoint)(char *aff_file, char *dict_file);
fp pHunspell = (fp)GetProcAddress(handle_Hunspell, "hunspell_initialize");
if (pHunspell) {
Hunspell* obj = (Hunspell *)pHunspell("..\hunspelldic\en_US.aff", "..\hunspelldic\en_US.dic");
obj->add_dic("..\hunspelldic\it_IT.aff", "..\hunspelldic\it_IT.dic");
}
问题是,如果在 BuilderC++ 2006 中,我可以在 obj-> 之后按 shift-space 后显示函数,但看起来它并不能真正识别类函数,并且它一直发出 Unresolved external '__fastcall Hunspell::add_dic(.. .);'引用自...
将 VC++ dll 调用到 Builder C++ 中的确切方法是什么?在此先感谢大家...
干杯, 路易吉诺
【问题讨论】:
标签: c++builder c++builder-2006