简体   繁体   中英

using vb6 dll in .net desktop application on 64 bit windows 7

I got a problem with old vb dll that I use in my Desktop .net 3.5 application. I recently got a new computer that runs 64 bit windows 7 while the old one was 32. And I'm getting this exception when creating instance of class from the dll.

The name of the dll starts with Interop.DllName.

This is the exception:

Retrieving the COM class factory for component with CLSID {C198B362-6AE8-4DC3-A3E9-5DA5E60B326F} failed due to the following error: 80040154.

There is no problem with registering the dll on the registry using regsvr32 but when I'm trying to find the dll using RegDllView I can't find it.

Thanx for the assistance!

您将需要确保将.Net应用程序目标平台设置为x86,否则该程序将在64位进程中运行,并且将无法加载32位dll。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM