I'm using tfax_2008 sample code (c++) that comes with Dialogic Brooktrout SR140 SDK. I was able to compile the application with no problems. However, I created a class and I have used same API functions but I got "error LNK2019: unresolved external symbol". Then it works perfectly when I revert the code back to a static function. My question is. How can I use Dialogic Brooktrout SR140 APIs in non-static functions within a class? here is code that I have used: ////////////////////////////////////////////////////////////////////////////////// void TFChannel::Init() { BTLINE *lp = NULL; struct args_line_admin args; BTERR bterr; lp = BfvLineAttach(&args); } ////////////////////////////////////////////////////////////////////////////////// Error: error LNK2019: unresolved external symbol "__declspec(dllimport) void * __cdecl MillLineAttach(struct args_line_admin *)" (__imp_?MillLineAttach@@YAPAXPAUargs_line_admin@@@Z) referenced in function "public: void __thiscall TFChannel::Init(void)" (?Init@TFChannel@@QAEXXZ)
↧