Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. COM DLL ERROR error LNK2001: unresolved external symbol "public: virtual long __stdcall

COM DLL ERROR error LNK2001: unresolved external symbol "public: virtual long __stdcall

Scheduled Pinned Locked Moved C / C++ / MFC
comhelpquestionannouncement
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ash_VCPP
    wrote on last edited by
    #1

    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.....

    K 1 Reply Last reply
    0
    • A Ash_VCPP

      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.....

      K Offline
      K Offline
      KingsGambit
      wrote on last edited by
      #2

      Is this an ATL COM?

      A 1 Reply Last reply
      0
      • K KingsGambit

        Is this an ATL COM?

        A Offline
        A Offline
        Ash_VCPP
        wrote on last edited by
        #3

        Hi Rajesh, Yes is an ATL COM DLL.

        Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

        K 1 Reply Last reply
        0
        • A Ash_VCPP

          Hi Rajesh, Yes is an ATL COM DLL.

          Thanks A Ton Ash_VCPP walking over water is just knowing where the stones are.....

          K Offline
          K Offline
          KingsGambit
          wrote on last edited by
          #4

          Are you overriding default AddRef, Release and QueryInterface implementations?

          A 1 Reply Last reply
          0
          • K KingsGambit

            Are you overriding default AddRef, Release and QueryInterface implementations?

            A Offline
            A Offline
            Ash_VCPP
            wrote on last edited by
            #5

            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.....

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups