Registration of COM objects in Windows 7 (64 bit)

It seems I have a problem when I run VBScript, when it creates a COM object, but only on Windows 7.

When you run VBA Script, you get:

Script: C:\Program Files\...
Line: 2
Char: 1
Error: ActiveX Component can't create object: 'my object'
Code: 800A01AD
Source: Microsoft VBScript runtime error

I used the command line (Admin) to register the DLL using regsvr32, but when this is done I get another error:

The module "my dll" was loaded but the entry-point DLLRegisterServer was not found.
Make sure that "my dll" is a valid DLL or OCX file and then try again

I am currently running Windows 7 64 bit. Script works on computers running Windows XP, but I do not know about computers running Windows Vista (they are not available for testing). I used the OLE-COM Object Viewer to find out if it was registered, but the file was not shown.

This is a problem with Windows 7 or 64-bit machines, or a combination of both.

+3
source share
1 answer

% windir%\syswow64\regsvr32 vbs % windir%\syswow64\cscript.exe

COM-, , 32 , 32- 64- , .

,

+3

Source: https://habr.com/ru/post/1785965/


All Articles