Hi, i'm a new learner of the ways of COM and, when trying to recode a code example found in Automating Office by Lori Turner from just a demo of Word interaction into a c++ class (which i will be using in my program) i come across these linker errors:
1>Linking...
1>bridge.obj : error LNK2028: unresolved token (0A00000E) "extern "C" void __stdcall CoUninitialize(void)" (?CoUninitialize@@$$J10YGXXZ) referenced in function "public: __thiscall bridge::~bridge(void)" (??1bridge@@$$FQAE@XZ)
1>bridge.obj : error LNK2028: unresolved token (0A000010) "extern "C" void __stdcall SysFreeString(wchar_t *)" (?SysFreeString@@$$J14YGXPA_W@Z) referenced in function "public: void __thiscall bridge::FindReplace(wchar_t *,wchar_t *)" (?FindReplace@bridge@@$$FQAEXPA_W0@Z)
1>bridge.obj : error LNK2028: unresolved token (0A000011) "extern "C" wchar_t * __stdcall SysAllocString(wchar_t const *)" (?SysAllocString@@$$J14YGPA_WPB_W@Z) referenced in function "public: __thiscall bridge::bridge(void)" (??0bridge@@$$FQAE@XZ)
1>bridge.obj : error LNK2028: unresolved token (0A000018) "extern "C" long __stdcall CoCreateInstance(struct _GUID const &,struct IUnknown *,unsigned long,struct _GUID const &,void * *)" (?CoCreateInstance@@$$J220YGJABU_GUID@@PAUIUnknown@@K0PAPAX@Z) referenced in function "public: __thiscall bridge::bridge(void)" (??0bridge@@$$FQAE@XZ)
1>bridge.obj : error LNK2028: unresolved token (0A000019) "extern "C" long __stdcall CLSIDFromProgID(wchar_t const *,struct _GUID *)" (?CLSIDFromProgID@@$$J18YGJPB_WPAU_GUID@@@Z) referenced in function "public: __thiscall bridge::bridge(void)" (??0bridge@@$$FQAE@XZ)
1>bridge.obj : error LNK2028: unresolved token (0A00001A) "extern "C" long __stdcall CoInitialize(void *)" (?CoInitialize@@$$J14YGJPAX@Z) referenced in function "public: __thiscall bridge::bridge(void)" (??0bridge@@$$FQAE@XZ)
1>bridge.obj : error LNK2019: unresolved external symbol "extern "C" wchar_t * __stdcall SysAllocString(wchar_t const *)" (?SysAllocString@@$$J14YGPA_WPB_W@Z) referenced in function "public: __thiscall bridge::bridge(void)" (??0bridge@@$$FQAE@XZ)
1>bridge.obj : error LNK2019: unresolved external symbol "extern "C" long __stdcall CoCreateInstance(struct _GUID const &,struct IUnknown *,unsigned long,struct _GUID const &,void * *)" (?CoCreateInstance@@$$J220YGJABU_GUID@@PAUIUnknown@@K0PAPAX@Z) referenced in function "public: __thiscall bridge::bridge(void)" (??0bridge@@$$FQAE@XZ)
1>bridge.obj : error LNK2019: unresolved external symbol "extern "C" long __stdcall CLSIDFromProgID(wchar_t const *,struct _GUID *)" (?CLSIDFromProgID@@$$J18YGJPB_WPAU_GUID@@@Z) referenced in function "public: __thiscall bridge::bridge(void)" (??0bridge@@$$FQAE@XZ)
1>bridge.obj : error LNK2019: unresolved external symbol "extern "C" long __stdcall CoInitialize(void *)" (?CoInitialize@@$$J14YGJPAX@Z) referenced in function "public: __thiscall bridge::bridge(void)" (??0bridge@@$$FQAE@XZ)
1>bridge.obj : error LNK2019: unresolved external symbol "extern "C" void __stdcall SysFreeString(wchar_t *)" (?SysFreeString@@$$J14YGXPA_W@Z) referenced in function "public: void __thiscall bridge::FindReplace(wchar_t *,wchar_t *)" (?FindReplace@bridge@@$$FQAEXPA_W0@Z)
1>bridge.obj : error LNK2019: unresolved external symbol "extern "C" void __stdcall CoUninitialize(void)" (?CoUninitialize@@$$J10YGXXZ) referenced in function "public: __thiscall bridge::~bridge(void)" (??1bridge@@$$FQAE@XZ)
1>C:\Users\remuladgryta\Documents\Visual Studio 2008\Projects\testapp\Debug\testapp.exe : fatal error LNK1120: 12 unresolved externals
I'm guessing there's something I've forgot to include, but I have no idea of what. Any help?