We help IT Professionals succeed at work.

Grid32.ocx could not be loaded

huhu
huhu asked
on
I developed my programs using vb6.0 in a machine. When i copy the whole program to another machine and try to open the program.
I got the message

"C:\VBprograms\Iis\Grid32.ocx" could not be loaded -- Continue loading project?"

C:\VBprograms\Iis\   is my program folder


Please tell me why this happened? and how to fix it.

Thanks

HuHu
Comment
Watch Question

You need to use the package and deployment wizard to create a setup package and install the program that way so all of the files that your app requires will be placed where they need to be and regestered.

dragontooth

Author

Commented:
No. I don't want to install the program. I just want to copy all the code to another machine and develop my project on that machine instead.
Éric MoreauSenior .Net Consultant
Top Expert 2016

Commented:
You are using a VB5 control in VB6 and that control was not installed. To install it see http://support.microsoft.com/default.aspx?scid=kb;en-us;177799&Product=vb6
Commented:
Another way out is to copy the grid32.ocx onto the new system and register it using

regsvr32 <path where grid32.ocx is>\grid32.ocx

(run the aboce command)

Opening the project after this should do fine.
Éric MoreauSenior .Net Consultant
Top Expert 2016
Commented:
_agj_, You also need the license (dbgrid.reg) and. See my link.