View Full Version : registering a particular dll.
Davis
December 11th 03, 08:03 AM
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
Doug Knox MS-MVP
December 11th 03, 08:04 AM
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
--
Doug Knox, MS-MVP Windows XP/ Windows Smart Display
Win 95/98/Me/XP Tweaks and Fixes
http://www.dougknox.com
--------------------------------
Associate Expert
ExpertZone - http://www.microsoft.com/windowsxp/expertzone
--------------------------------
Please reply only to the newsgroup so all may benefit.
Unsolicited e-mail is not answered.
"Davis" > wrote in message
...
> 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
Davis
December 11th 03, 08:06 AM
Okay,
thanks for the advice Doug, I'll give it a shot.
Davis.
>-----Original Message-----
>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
>
>--
>Doug Knox, MS-MVP Windows XP/ Windows Smart Display
>Win 95/98/Me/XP Tweaks and Fixes
>http://www.dougknox.com
>--------------------------------
>Associate Expert
>ExpertZone - http://www.microsoft.com/windowsxp/expertzone
>--------------------------------
>Please reply only to the newsgroup so all may benefit.
>Unsolicited e-mail is not answered.
>
>"Davis" > wrote in
message
...
>> 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
>
>
>.
>
vBulletin® v3.6.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.