registering a particular dll.

D

Davis

G'day from Australia,

I'm not sure which is the correct forum to post this but;

I am trying to register a particular dll on a computer
using regsvr.exe running Windows XP (have done so easily
on several other PCs running Windows98), but get the
following Error - "Load Library {file path/file name}
failed. The specified module could not be found". I have
checked the spelling, I have verified that regsvr32
exists in the location I think it does, I have tried a new
regsvr32 and I have tried a new dll all to no avail.

Is there something obvious that I am missing?

Cheers,
Davis
 
D

Doug Knox MS-MVP

When using REGSVR32 you need to observe a couple of conventions.

1) DLL's located in the %SystemRoot% (usually Windows) folder and the
%SystemRoot%\System32 folder can usually be registered with

REGSVR32 DLLNAME.DLL

If the DLL is not in one of these two folders, or in a folder that is in the
PATH statement, then you usually need to provide the full path and file name

REGSVR32 C:\MyProject\MyApplication\MyDLL.DLL

If the path or file name has spaces in it, you need to enclose the path and
file name in quotes

REGSVR32 "C:\My Project\My Application\MyDLL.DLL"

You can also add a context menu item for DLL's, so that you can right click
them and Register them. Go to Start, Run and enter REGEDIT Go to:

HKEY_CLASSES_ROOT\dllfile

Right click the dllfile subkey and select New, Key and name the new key
Shell. Right click Shell and select New, Key and name it Register. Rigth
click Register and select New, Key and name it Command. Highlight the
Command subkey and then in the right pane double click the Default value.
Enter REGSVR32.EXE %1

Now, you have a context menu item specifically for DLL's. You can add the
Unregister command as well, using the same steps as above, just substitute
Unregister for Register and change the command line to REGSVR32.EXE -U %1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top