Problem using SimplyVBUnit
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.
Have you registered them?
Use Start-Run and run regsvr32 <full-path-to-file>
. Repeat this for the OCX and the DLL
精彩评论