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. COM
  4. Unable to register 64 bit COM Server

Unable to register 64 bit COM Server

Scheduled Pinned Locked Moved COM
csharpc++visual-studiocomsysadmin
3 Posts 3 Posters 2 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.
  • S Offline
    S Offline
    sandeepkavade
    wrote on last edited by
    #1

    Hi, I am trying to create a 64 bit COM server in visual studio 2008 on win7 x64 machine. Here are the steps I am following: 1. Open Visual Studio. 2. Create ATL Project 3. On ATL Project wizard in application settings select Executable(EXE) then Finish 4. Then Build->Configuration Manger change Platform to x64 5. Build the project. 6. On output window everything seems ok but if I take a look at buildLog.htm then there is a error 'errro PRJ0019: A tool returned an error code from "Performing registration"'. Even I tried to register from command prompt (with admin rights) but it is not registering. Neither error message nor success message.

    L _ 2 Replies Last reply
    0
    • S sandeepkavade

      Hi, I am trying to create a 64 bit COM server in visual studio 2008 on win7 x64 machine. Here are the steps I am following: 1. Open Visual Studio. 2. Create ATL Project 3. On ATL Project wizard in application settings select Executable(EXE) then Finish 4. Then Build->Configuration Manger change Platform to x64 5. Build the project. 6. On output window everything seems ok but if I take a look at buildLog.htm then there is a error 'errro PRJ0019: A tool returned an error code from "Performing registration"'. Even I tried to register from command prompt (with admin rights) but it is not registering. Neither error message nor success message.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Make sure that the DllRegisterServer function exists and is exported. For a function to be exported, it must have an entry in the .def file. Note: In Visual Studio 2005, the VC++ compiler does not add the .def file name in the project settings by default. Provide a name to the .def file in the project settings. I am not sure if this has changed in Visual Studio 2008.

      "Don't confuse experts with facts" - Eric_V

      1 Reply Last reply
      0
      • S sandeepkavade

        Hi, I am trying to create a 64 bit COM server in visual studio 2008 on win7 x64 machine. Here are the steps I am following: 1. Open Visual Studio. 2. Create ATL Project 3. On ATL Project wizard in application settings select Executable(EXE) then Finish 4. Then Build->Configuration Manger change Platform to x64 5. Build the project. 6. On output window everything seems ok but if I take a look at buildLog.htm then there is a error 'errro PRJ0019: A tool returned an error code from "Performing registration"'. Even I tried to register from command prompt (with admin rights) but it is not registering. Neither error message nor success message.

        _ Offline
        _ Offline
        _Superman_
        wrote on last edited by
        #3

        Try opening Visual Studio with elevated privileges.

        «_Superman_»  _I love work. It gives me something to do between weekends.

        _Microsoft MVP (Visual C++)

        Polymorphism in C

        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