Click to See Complete Forum and Search --> : RegSvr32 Error help!


TheBerk
January 30th, 2008, 02:05 PM
Hi everbody!

I'm attempting to install a .dll file (SciLexer.dll) into C:\Windows\system32 in Vista and I am running into some trouble.

I've placed the .dll file into the system32 directory and then ran RegSvr32.

When I type "regsvr32 SciLexer.dll" I get the following error:

The module "SciLexer.dll" may not be compatible with the version of Windows that you're running. Check if the module is compatible with an x86 (32-bit) or x64 (64-bit)
of regsvr.exe.

I've also attempted "regsvr32 c:\Windows\System32\SciLexer.dll", and for that I get the error:

The module "C:\Windows\System32\SciLexer.dll" falied to load.
Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files.
The specified module could not be found.
may not be compatible with the version of windows you are running

I'm trying to get this loaded so I can run and ActiveX control in a C++ application, I've heard some advices online saying to put the .dll in the same directory as the .exe, but all installation directions I've seen for SciLexer.dll say to put it in the system32 directory.

Does anyone have any suggestions?

Thanks!

Arjay
January 30th, 2008, 02:11 PM
Run the Depends.exe tool on the SciLexer.dll and find out if it is missing any dependencies that would prevent it from loading. Also, is SciLexer.dll a 32-bit COM dll (or is it 16-bit)?

TheBerk
January 30th, 2008, 02:22 PM
Depends.exe says it cannot open GPSVC.dll, but only gave a warning, not an error. Is that worth even attempting to fix? I also believe SciLexer is a 32-bit.

TheBerk
January 30th, 2008, 03:24 PM
Ok, I was just told by my employer that the computer system I am running is actually a Vista 64 system, which would explain the "
The module "SciLexer.dll" may not be compatible with the version of Windows that you're running. Check if the module is compatible with an x86 (32-bit) or x64 (64-bit)
of regsvr.exe." error.

Is there a way to get this to work on a 64 system?

Arjay
January 30th, 2008, 03:26 PM
Vista may not like the fact that you are attempting to register the dll from system32.

In general this OS has tightened up where you can install applications/components.

You can read more about it in Windows Vista Development Story (http://download.microsoft.com/download/d/9/b/d9beb875-bc1d-4338-a655-251f4f353b2e/top10wave.exe) help file.

TheBerk
January 30th, 2008, 04:24 PM
Alright, I've looked into the missing GPSVC.dll problem, and it looks like there is some security issue with Vistax64 that doesn't let GPSVC.dll be used, even though it is there. Does anyone know anything about this? Or anyway around it?

Arjay
January 31st, 2008, 06:23 PM
For Vista Application Development guidelines, check out Vista Software Logo Spec 1.1 (http://download.microsoft.com/download/8/e/4/8e4c929d-679a-4238-8c21-2dcc8ed1f35c/Windows%20Vista%20Software%20Logo%20Spec%201.1.doc).