Regsvr32 and DLL registration

C

Camile

I have a Windows XP Pro PC that won't allow me to register certain DLLs used
in my Access applications. Isn't regsvr32.exe
"C:\Windows\system32\winmm.dll" the correct syntax?

The exact error returned is: C:\Windows\System32\comdlg.dll was loaded, but
the DLLRegisterServer entry point was not found. This file can not be
registered.

This problem presented itself after a Windows XP installation repair, after
that our Access applications all fail. It was then traced to a Library
issue.

Any suggesions appreciated.
 
W

Wesley Vogel

I cannot register or unregister either comdlg.dll or winmm.dll

Using regsvr32 or RegShell.exe.

You do not need the exe extension.

If the file is in the system32 folder you do not have to include the path.

regsvr32 winmm.dll

RegSvr32 - Graphical Interface
http://www.freevbcode.com/ShowCode.Asp?ID=1422

[[This program allows to register/unregister DLLs using RegSvr32 tool which
is included with Windows. This program is very easy even for beginners.
Additionally, it shows a way to find windows\system directory location
properly. A handy utility that will help you avoid the inconvenience of
running regsvr32 from the start menu all the time. ]]

CodeRegshell.zip
http://www.freevbcode.com/code/regshell.zip

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
G

GTS

Your syntax is fine, but only COM DLLs are registered in this manner. Non
COM DLLS do not contain a "DLLRegisterServer entry point" and attempting to
register them will generate the error message you saw. There are other
library and dll failure possibilities, but you didn't give enough
information about the failures to address them.
 
C

Camile

So is the Windows' regsvr32 I have used a thousand times in my life not
adequate?
Will the VBA project you suggested not throw errors? Even thought it uses
regsvr32?
I have never received this error before, only the success message.

Is there a tool you can suggest to analyze & test DLLs? Or what process
could I use to refresh all ?

I can't run VB or VBA forms with code on this PC because of the library
problem I'm chasing.

Wesley Vogel said:
I cannot register or unregister either comdlg.dll or winmm.dll

Using regsvr32 or RegShell.exe.

You do not need the exe extension.

If the file is in the system32 folder you do not have to include the path.

regsvr32 winmm.dll

RegSvr32 - Graphical Interface
http://www.freevbcode.com/ShowCode.Asp?ID=1422

[[This program allows to register/unregister DLLs using RegSvr32 tool which
is included with Windows. This program is very easy even for beginners.
Additionally, it shows a way to find windows\system directory location
properly. A handy utility that will help you avoid the inconvenience of
running regsvr32 from the start menu all the time. ]]

CodeRegshell.zip
http://www.freevbcode.com/code/regshell.zip

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Camile said:
I have a Windows XP Pro PC that won't allow me to register certain DLLs
used in my Access applications. Isn't regsvr32.exe
"C:\Windows\system32\winmm.dll" the correct syntax?

The exact error returned is: C:\Windows\System32\comdlg.dll was loaded,
but the DLLRegisterServer entry point was not found. This file can not be
registered.

This problem presented itself after a Windows XP installation repair,
after that our Access applications all fail. It was then traced to a
Library issue.

Any suggesions appreciated.
 
W

Wesley Vogel

Explanation of Regsvr32 Usage and Error Messages
http://support.microsoft.com/default.aspx?scid=kb;en-us;249873

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Camile said:
So is the Windows' regsvr32 I have used a thousand times in my life not
adequate?
Will the VBA project you suggested not throw errors? Even thought it uses
regsvr32?
I have never received this error before, only the success message.

Is there a tool you can suggest to analyze & test DLLs? Or what process
could I use to refresh all ?

I can't run VB or VBA forms with code on this PC because of the library
problem I'm chasing.

Wesley Vogel said:
I cannot register or unregister either comdlg.dll or winmm.dll

Using regsvr32 or RegShell.exe.

You do not need the exe extension.

If the file is in the system32 folder you do not have to include the
path.

regsvr32 winmm.dll

RegSvr32 - Graphical Interface
http://www.freevbcode.com/ShowCode.Asp?ID=1422

[[This program allows to register/unregister DLLs using RegSvr32 tool
which is included with Windows. This program is very easy even for
beginners. Additionally, it shows a way to find windows\system directory
location properly. A handy utility that will help you avoid the
inconvenience of running regsvr32 from the start menu all the time. ]]

CodeRegshell.zip
http://www.freevbcode.com/code/regshell.zip

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Camile said:
I have a Windows XP Pro PC that won't allow me to register certain DLLs
used in my Access applications. Isn't regsvr32.exe
"C:\Windows\system32\winmm.dll" the correct syntax?

The exact error returned is: C:\Windows\System32\comdlg.dll was loaded,
but the DLLRegisterServer entry point was not found. This file can not
be registered.

This problem presented itself after a Windows XP installation repair,
after that our Access applications all fail. It was then traced to a
Library issue.

Any suggesions appreciated.
 
C

Camile

Ohhhhhhhhhhhhhhhhhh...
That's what I needed to hear.

My other information starts getting into Access 2000 & 2003.
Both have the same problems in code like Using DoCmd.Requery "TSubtotal",
or DoCmd.Close acForm, "Orders", acSaveYes as an Event Procedure behind a
button, etc. Every move I make involving code seems to produce the error:
<The expression On Open you entered as the Event property setting produced
the following error: Error Loading DLL.> Apparently forms without code work
without errors. Anything referring to code gives the error.

So I made a fresh conversion of one access03 app to access2K, then tried to
compile it. Again "Error in loading DLL".

What other information could help? I don't have much more. All References
in Access are normal without Missing File warning. I have 5 other PCs in
the office that run these apps easily with only the addition of
MSCOMCT2.OCX.
 
G

GTS

It sounds like some library dependency for Access or related components like
MDAC is damaged, or had bad registry data. I would try reinstalling Access
on the problem machine.
--
 
C

Camile

I have removed & reinstalled access 2k & 03 at least three times thinking
the two were competing or etc.
Thanks
 
G

GTS

Have you thoroughly checked for malware? You said earlier that the access
problem started after a Windows reinstall. What problems caused you to do
the reinstallation?
--
 
C

Camile

Yes I have, House call, Spybot, Stinger. Al of our computers operate behind
a server running Winproxy with up to the minute AV definitions. After my
reinstall I found hard drive errors(3 month old drive) using Check
Disk(error checking) it corrected thoese & finished. Then I ran the install
again to hopefully repair/replace any missing or damaged files. The DLL
problem has been unchanged through all of this.

The problem that caused me to do the reinstall originally was a sudden
failure to start. After the Windows splash screen it flashed a blue error
screen with yellow text on the upper 1/3 of the display too quickly to read,
then it returned to a black screen.
 
G

GTS

Did you run chkdsk /r? Were there any bad sectors. I would run it again
now. Possibly a manufacturer drive test utility also. A failing hard disk
could definitely explain the recurring problems.
--
 

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