Class not registered Error

前端 未结 10 1952
伪装坚强ぢ
伪装坚强ぢ 2020-12-05 14:32

Running an application from Visual Studio 2012 on 64-bit computers, displays the following error message:

Retrieving the COM class factory for compon

10条回答
  •  孤街浪徒
    2020-12-05 15:11

    The problem is that the DLL is registered on the 32 bit version of the windows registry, and the application is using the 64 bit version.

    Solution: Go into the Project Properties, Compile tab and click "Advanced Compile Options...". Change "Target CPU" to x86, click OK, save and try again.

    Source: http://www.theogray.com/blog/2009/10/comexception-regdbeclassnotreg-on-64-bit-windows

    Has worked for me with an VB 6 COM DLL invoked from a .Net 4 Winforms application

提交回复
热议问题