I’m having a hard time finding documentation on where I need to put the SimplyVBUnit.dll and SimplyVBUnitUI.ocx files so I can run the tutorial in this question: Gutzofter’s mini tutorial on SimplyVBUnit.
Where exactly do I need to reference or register these files so I can create unit tests with VB6?
When I open the source above it says it cannot load SimplyVBUnitUI.ocx and I get the following error in the associated log file:
Line 13: Class SimplyVBUnitUI.SimplyVBUnitCtl of control SimplyVBUnitCtl1 was not a loaded control class.
In order to add the ocx manually, you need to add it to the toolbox then put an instance of the UI control on a form. You will also need a reference to the dll which has the framework. Then make the form the startup object. If you installed SimplyVBUnit using an installer, there is a form in the Projects template folder (frmSimplyVBUnitRunner I think). You can copy that to the Forms templates and just add a new form (the runner form) to the project that will contain your tests.