开发者

Using VB 6.0 Form in .net which is embeded in a DLL

开发者 https://www.devze.com 2023-01-21 01:42 出处:网络
I have a DLL of a VB 6 Project that has one class and a form. The form is called from that class when its constructor is called. I made a DLL from the project, add that DLL is in my .NET project refer

I have a DLL of a VB 6 Project that has one class and a form. The form is called from that class when its constructor is called. I made a DLL from the project, add that DLL is in my .NET project references. Now when I call that class DLL it gives the following error:

Creating an instance of the COM component with CLSID {4E44E1A1-391D-4846-B733-2618249FE35A} from the IClassFactory failed due t开发者_StackOverflow中文版o the following error: 800a0196.

Which means the form is not opening.


Forms in a VB6 ActiveX DLL must be opened modally from .NET. Is you form modal?

0

精彩评论

暂无评论...
验证码 换一张
取 消