Does anyone know how to show a form/use a class from within the windows dll created above?
Any attempt to dim (and use) a private class or form from within the dll generate a windows error.
add a form 'Form1' to the dll project
add this code to the dll module
Public Function ShowForm1() As Long
Dim f as New Form1
ShowForm1 = 1
add new line to DEF file
and compile dll
Any call to ShowForm1 method crashes vb/exe
If I add a public method to the empty class and call that method first then displaying form does not fail (but by then it's a com dll anyway and requires registering and adding to vb references).
Seems that 'something' is not being initialized in the windows dll to allow 'objects'.