I have compiled a Hunspell DLL with VC++ which contains a class...
Now I want to call that DLL in Builder C++ 2006 to use its functions...how I can do that?
I tried with:
typedef Hunspell * (CALLBACK *fpoint)(char *aff_file, char *dict_file);
fp pHunspell = (fp)GetProcAddress(handle_Hunspell, "hunspell_initialize");
if (pHunspell) {
Hunspell* obj = (Hunspell *)pHunspell("..hunspelldicen_US.aff", "..hunspelldicen_US.dic");
obj->add_dic("..hunspelldicit_IT.aff", "..hunspelldicit_IT.dic");
}
the matter is if in BuilderC++ 2006 I can show functions after pressing shift-space after obj-> but looks like it doesn't really recognize class functions and it keeps giving out Unresolved external '__fastcall Hunspell::add_dic(...);' referenced from....
What would be the exact way to call a VC++ dll into Builder C++? Thanks in advance to everyone...
Cheers,
Luigino
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…