Error compiling project with VB 6. Pass to . Net

Asked

Viewed 121 times

2

I am not a developer in VB. I took a project for 5 days, through a consulting, but it should be all in SQL Server. Well, it turns out, that some changes on screen should be made. I opened VB 6 (Compiler) and selected the.vbp project and when loading, it generated several errors. I went to give the F5 to run and is giving the following message:

inserir a descrição da imagem aqui

Several error logs were 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.

frmRelRelatoryMedical.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 don’t know what it is, and I don’t even know what to do.

Waiting for my colleagues..

2 answers

2


Download the controls:

  • MSMask.MaskEdBox -> MSMASK32.OCX

  • MSComCtl2.DTPicker -> MSCOMCT2.OCX

After downloading, register these controls:

  1. Open command prompt as administrator;
  2. Navigate to the folder that downloaded the . OCX;
  3. Run the regsvr32: c:\downloads> regsvr32 MSMASK32.OCX
  4. c:\downloads> regsvr32 MSCOMCT2.OCX

Now, in your VB6 project, add them to your project references. As we do in . NET.

How to add or remove references using the Add Reference dialog box

0

There may be a need to download Visual Studio with Servicepack6 to meet your VB6 demand. 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 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’ve helped.

  • VB is installed on a VM with Windows XP

  • Tried to install Service Pack 6 on the VM?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.