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. C / C++ / MFC
  4. Can't reference COM type library in x64 visual studio?

Can't reference COM type library in x64 visual studio?

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studiocomwindows-admin
3 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.
  • W Offline
    W Offline
    Will5801
    wrote on last edited by
    #1

    http://www.codeproject.com/KB/IP/SENSNetworkEvents.aspx[^] When attempting to load this project on x64, the SENS type libary is not available in the COM tab of the References dialog. SENS.DLL seems to be correctly registered in the registry as a type library but is not recognized in Visual Studio. The example project is C# but the problem persists in C++ projects too. It works fine on 32 bit. Have tested this on several x64 boxes, same result. Is the Visual Studio builder broken?

    _ 1 Reply Last reply
    0
    • W Will5801

      http://www.codeproject.com/KB/IP/SENSNetworkEvents.aspx[^] When attempting to load this project on x64, the SENS type libary is not available in the COM tab of the References dialog. SENS.DLL seems to be correctly registered in the registry as a type library but is not recognized in Visual Studio. The example project is C# but the problem persists in C++ projects too. It works fine on 32 bit. Have tested this on several x64 boxes, same result. Is the Visual Studio builder broken?

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

      Looks like SENS.dll is built as a 32-bit binary. If so, 64-bit EXEs cannot load 32-bit DLLs and vice versa.

      «_Superman_»

      W 1 Reply Last reply
      0
      • _ _Superman_

        Looks like SENS.dll is built as a 32-bit binary. If so, 64-bit EXEs cannot load 32-bit DLLs and vice versa.

        «_Superman_»

        W Offline
        W Offline
        Will5801
        wrote on last edited by
        #3

        I have two versions of SENS.DLL both version 5.2.3790.3959 According to WinMerge they are binary identical. However, they are different sizes on disk? C:\windows\system32\sens.dll (65,024 bytes) C:\windows\sysWOW64\sens.dll (37,376 bytes) I also loaded them both into TextPad and they appear identical, both have length of 37,376 Why they appear different sizes on disk? It appears that MS has accidentally released a 32 bit build of the DLL for both 32 bit and 64 bit use?

        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