Can't register dll
Posted on 2003-10-24
This isnt a C++ question, but I think this is the best place to get an answer to my problem.
I've written a BHO (browser helper object) dll file, and it works great on my computer. I register the dll by typing in:
regsvr32 -c BHODll.dll
and it registers fine. I am running Windows XP Pro.
I have a friend that tried to do the same thing on his computer, but he gets the following error when trying to run regsvr32 on the dll:
LoadLibrary("BHODll.dll") failed - The specified module could not be found
He is running windows 2000. The dll is placed in the system32 directory (plus he tried running the command from the same dir as the dll). How could it not find the module when it's in the same directory?
My only guess is my dll loads other dll files that his computer doesnt have. I ran a program called depends on my dll to see what other dlls it depends on. He has all those dlls on his computer, so that can't be the problem.
Ive tried this on numerous XP machines and it works fine. He is the only person I know with a 2000 machine though, so I havnt been able to test to see if it works on other 2k machines.
So does anyone have any ideas?