Showing a form in a COM visible DLL

From unmanaged VC++ 6.0 I'm calling a COM visible .NET DLL. From this DLL, I want to show a dialog. I can get the DLL to register properly and work if the methods don't call Form.show(). However, if the methods DO call form show, I cannot instantiate the DLL (I get 'class not registered error").

Anybody know what I need to do?

preguntado el 31 de julio de 12 a las 14:07

Pretty unclear, you'd have to create the COM object instance antes you could call the Show() method. Threading issues are associated with "class not registered" errors, make sure you C++ thread is STA. -

1 Respuestas

Assuming that's a Windows Forms Form.Show(), I think you'll need a Windows Forms Application.Run() in your process somewhere.

Respondido 31 Jul 12, 14:07

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.