COM DLL ERROR error LNK2001: unresolved external symbol "public: virtual long __stdcall
-
Hi All, While building the COM DLL i am getting these three linking errors:- 1. error LNK2001: unresolved external symbol "public: virtual long __stdcall CScriptObject::QueryInterface(struct _GUID const &,void * *)" (?QueryInterface@CScriptObject@@UAGJABU_GUID@@PAPAX@Z) ScriptObject.obj 2. error LNK2001: unresolved external symbol "public: virtual unsigned long __stdcall CScriptObject::AddRef(void)" (?AddRef@CScriptObject@@UAGKXZ)ScriptObject.obj 3.error LNK2001: unresolved external symbol "public: virtual unsigned long __stdcall CScriptObject::Release(void)" (?Release@CScriptObject@@UAGKXZ)ScriptObject.obj Please provide me some suggestions.
Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....
-
Hi All, While building the COM DLL i am getting these three linking errors:- 1. error LNK2001: unresolved external symbol "public: virtual long __stdcall CScriptObject::QueryInterface(struct _GUID const &,void * *)" (?QueryInterface@CScriptObject@@UAGJABU_GUID@@PAPAX@Z) ScriptObject.obj 2. error LNK2001: unresolved external symbol "public: virtual unsigned long __stdcall CScriptObject::AddRef(void)" (?AddRef@CScriptObject@@UAGKXZ)ScriptObject.obj 3.error LNK2001: unresolved external symbol "public: virtual unsigned long __stdcall CScriptObject::Release(void)" (?Release@CScriptObject@@UAGKXZ)ScriptObject.obj Please provide me some suggestions.
Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....
Is this an ATL COM?
-
Is this an ATL COM?
-
Hi Rajesh, Yes is an ATL COM DLL.
Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....
Are you overriding default AddRef, Release and QueryInterface implementations?
-
Are you overriding default AddRef, Release and QueryInterface implementations?
Yes Rajesh i was doing the same, but after removing these functions now i didnt get linking error. But now only i have created one client and importing the dll, but when i am trying to use methoda ( mylib:: ) i am not getting any methods, so can you please tell me what changes i should make in my dll. thanks for your support.
Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....