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("..\hunspelldic\en_US.aff", "..\hunspelldic\en_US.dic");
obj->add_dic("..\hunspelldic\it_IT.aff", "..\hunspelldic\it_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