Registering OCXs and DLLs

From VbGORE Visual Basic Online RPG Engine

The system for the OCXs and DLLs has been changed in version 0.0.3 and beyond. If you recieve an error that looks like this:

Run-time error '339': 

Component 'Socket.ocx' or one of its dependencies not correctly registered: a file is missing or invalid 

...then please copy your files from the Libraries folder (comes with the vbGORE download) to your System32 folder (default C:\Windows\System32\). If you do not have a System32 folder, use your ...\System\ folder. If this does not work, you can try copying all the files into the same folder all the EXEs are. If both of those fail, please read the below.

Those who get the error said above with a missing component do not have the file in the correct path or you need to register it. Many installation programs can do this automatically, but with archived (zip, rar, 7z, tar, etc) files that you extract, these files are not registered automatically and may not be recognized automatically.

To register a file, you first need to find it's path. Most files should be located in ...\Libraries\ so start with finding that folder. Look for the file that can not be found, then right-click it and click Properties. In the Properties window, in the 2nd section down, you will see Location. Take the Location and combine it with the file's name to get the full path. Example:

File path: C:\vbGORE\Libraries\ File name: Socket.ocx Complete file path: C:\vbGORE\Libraries\Socket.ocx

Take this complete file path and go to Start -> Run to bring up the Run prompt. Enter the following:

regsvr32 "<filepath>"

where <filepath> is the Complete file path you acquired from the method above. When you are finished, it should look something like this:

regsvr32 "C:\vbGORE\Libraries\Socket.ocx"

Make sure you keep the " " in there so the program knows it is all combined. Once you have that entered, just press OK or press Enter and the registration should succeed! If it does not, it is more then likely that you have entered the wrong file path.

Personal tools