Error compiling project with VB 6. Switch to .Net

2

I'm not a developer in VB. I took a project for 5 days, through a consultancy, but it should be all in SQL Server . Well, it happens, that some screen change should be made. I opened VB 6 (Compiler) and selected the project.vbp and when loading, generated several errors. I was giving F5 to run and is giving the following message:

Multiple error logs have been generated, which I select these:

frmCadBeneficios.log

  

Line 242: Class MSMask.MaskEdBox of control mskDtInicioPlano was not a   loaded control class. Line 267: Class MSComCtl2.DTPicker of control   dtpDataContract was not a loaded control class. Line 288: Class   MSMask.MaskEdBox of control mskDataOpcaoContract was not a loaded   control class.

frmRelRelatorioMedico.log

  

Line 131: Class MSComCtl2.DTPicker of control dtpInicio was not a   loaded control class. Line 152: Class MSComCtl2.DTPicker of control   dtpFinal was not a loaded control class.

frmRelPortaria.log

  

Line 151: Class MSComCtl2.DTPicker of control dtpDataPeriodo was not a   loaded control class. Line 172: Class MSComCtl2.DTPicker of control   dtpDataPeriodo_Fim was not a loaded control class. Line 193: Class   MSComCtl2.DTPicker of control dtpDataAdmissao was not a loaded control   class.

I think these are enough, but there are more than 20 forms. I do not know what it is, and I do not know what to do.

I'm waiting for my colleagues ..

    
asked by anonymous 18.04.2017 / 13:38

2 answers

2

Download the controls:

  • MSMask.MaskEdBox - > MSMASK32.OCX

  • MSComCtl2.DTPicker - > MSCOMCT2.OCX

After downloading, register these controls:

  • Open the command prompt as an administrator;
  • Navigate to the folder that downloaded .OCX;
  • Run regsvr32: c:\downloads> regsvr32 MSMASK32.OCX
  • c:\downloads> regsvr32 MSCOMCT2.OCX
  • Now, in your project in VB6, add them in the references of your project. As we do in .NET.

    Adding or Removing References Using the Add Reference Dialog Box

        
    18.04.2017 / 15:31
    0

    There may be a need to download Visual Studio with ServicePack6 to meet your demand for VB6. If your VB is installed on Windows 7, 8 or 10, you may have some difficulty, but there are many Windows tutorials that have helped you. And why have to install SP6? If your application was developed in SP6, there may be some incompatibility of the MSMASK32.OCX and MSMASK32.OCX controls within the project. I hope I have helped.

        
    20.04.2017 / 04:49