Win7 problem with VB6 ocx registration

You have many old VB6 applications that work at work and start working with the Win7 machine.

I ran it and found the OCX registration error line by line ... ocx is not registered.

RegSvr32 \\Uhsfp1\UserPrograms\sharedcomponents\UHSLineItems.ocx 

and no errors when starting as administrator from the cmd prompt.

I ran the application again and I read the error message:

An error occurred while providing access to certain functions in this expression. An ActiveX component cannot create an object.

Indeed, users do not want to see this.

Any ideas?

TIA

+3
source share
3 answers

64- ? C:\Windows\SYSWOW64\regsvr32.exe , C:\Windows\System32\regsvr32.exe. - 32- , 32- .

+3

OCX .

+2

You need to make sure that the command line (or the calling process) is running at a higher level in order for regsvr32 to succeed on Windows 7

+1
source

All Articles