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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. COM
  4. COM newbie: LNK2005

COM newbie: LNK2005

Scheduled Pinned Locked Moved COM
helpc++comsysadmin
2 Posts 1 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.
  • J Offline
    J Offline
    Jose M Castellanos
    wrote on last edited by
    #1

    Hello: I am developping my first COM project :-O, that in fact is an attempt to split a previous project into a client and a COM server. Since I'm not very experienced in this field, I'm having linking errors when trying to compile the server: winComServer.cpp Linking... winComServer_i.obj : error LNK2005: _CLSID_CoServer already defined in winComServer.obj winComServer_i.obj : error LNK2005: _LIBID_WINCOMSERVERLib already defined in winComServer.obj winComServer_i.obj : error LNK2005: _IID_ICoServer already defined in winComServer.obj I have been reading several forums about this kind of problems with no possitive results. I'm NOT including "initguid.h" from "stdafx.h", that seems to be a source of problems. Any help would be really welcomed. Jose M -- modified at 9:13 Monday 12th September, 2005

    J 1 Reply Last reply
    0
    • J Jose M Castellanos

      Hello: I am developping my first COM project :-O, that in fact is an attempt to split a previous project into a client and a COM server. Since I'm not very experienced in this field, I'm having linking errors when trying to compile the server: winComServer.cpp Linking... winComServer_i.obj : error LNK2005: _CLSID_CoServer already defined in winComServer.obj winComServer_i.obj : error LNK2005: _LIBID_WINCOMSERVERLib already defined in winComServer.obj winComServer_i.obj : error LNK2005: _IID_ICoServer already defined in winComServer.obj I have been reading several forums about this kind of problems with no possitive results. I'm NOT including "initguid.h" from "stdafx.h", that seems to be a source of problems. Any help would be really welcomed. Jose M -- modified at 9:13 Monday 12th September, 2005

      J Offline
      J Offline
      Jose M Castellanos
      wrote on last edited by
      #2

      I have solved the problem: I had changed my precompiled headers settings. I must use them in order to make the app works. Sorry guys, no winners this time. Next time you shoud be faster ;). Jose M

      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