Using VB 6.0 Form in .net which is embeded in a DLL
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?
精彩评论