Form in a VB ActiveX dll
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
Hi all, I am trying to use a vb dll from a VC++ app in which I want to show a form. All goes well except where I create and show the form. This is what I am doing from the class module: Public Sub Class_Initialize() Dim myForm As New Form1 Load myForm myForm.Show End Sub With the Show part commented out, CreateDispatch(VBDLLNAME,&oleException) returns Operation returned Successfully or something like that in the exception variable, but when The Show line is uncommented and the program is run exception is thrown 'class not registered'. I just started with VB yesterday and need to do this to support some legacy VB code. Please Help! Cheers, Zeeshan Razzaque.