Runtime Error 424 Object Required

When executing a program that was created using Visual Basic 6.0 and a SocketTools ActiveX control, the following error is returned: Run-time error 424: Object required. This error can occur if the control is not properly registered on the local system, or if the object has not been referenced correctly.

More Information

If the ActiveX control is being created dynamically using CreateObject, you must use the Set statement to assign the object reference to a variable. If the object variable has been declared as a Variant, an error will not necessarily be returned if you assign it to the return value of a CreateObject call, however error 424 will be generated whenever the application attempts to reference the object.

Check to make sure that the control is installed on the system and register it using the regsvr32.exe utility. This utility should be run from the command line, and on Windows Vista or later versions you must open the command prompt with Administrative privileges. To determine the correct filename for the control that you are using, refer to the online documentation for that control. If you are using a 32-bit version of Windows, enter the following command:

c:\windows\system32\regsvr32.exe c:\windows\system32\filename.ocx

On a 64-bit Windows system, the C:\Windows\System32 folder contains 64-bit libraries, components and executables. The C:\Windows\Syswow64 folder refers to WoW64 which is the 32-bit compatibility subsystem that enables 32-bit applications and components to be used on 64-bit Windows platforms. If you are using a 64-bit version of Windows, enter the following command:

c:\windows\syswow64\regsvr32.exe c:\windows\syswow64\filename.ocx

After the regsvr32.exe utility has been run, a message box should be displayed that indicates that the control has been registered. If an error message is displayed, this typically indicates that either the component file is missing, the name is misspelled or you are attempting to register the ActiveX control from a standard command prompt rather than an administrative command prompt.

See Also

ActiveX Component Can't Create Object
DllRegisterServer Fails with Error 0x80040200
How to use the Regsvr32 tool and troubleshoot Regsvr32 error messages

Shopping Cart
Scroll to Top