How using 32 bit dll for AnyCPU?

-1

How can I use 32 dll for AnyCpu(x64). Error :

Retrieving the COM class factory for component with CLSID {E187099F-8C5C-4723-8866-D8DBB6353ADE} failed due to the following error: 80040153 Invalid value for registry (Exception from HRESULT: 0x80040153 (REGDB_E_INVALIDVALUE))

Is there a solution for this?

c#
windows
dll
com
asked on Stack Overflow Mar 11, 2015 by Ibrahim Sušić • edited Mar 11, 2015 by Soner Gönül

1 Answer

0

Quick answer: No. You cannot use 32bit dlls in an 64bit application.

A workaround would be to create a 32bit application, that uses the 32bit dll and then communicates with your 64bit application via IPC or something similar.

answered on Stack Overflow Mar 11, 2015 by Alexander Mills

User contributions licensed under CC BY-SA 3.0