I am working on an ATL DLL server, and I began to receive an error when registering the DLL by building it. It compiles with no errors; it's the registration that is the problem. I always get the error:
RegSvr32: DllRegisterServer in "filename.dll" failed.
Return code was 0x80070716
The return code is described as "The specified resource name can not be found in the image file." according to the Error Lookup tool in VC6. If you try to register the dll through RegSvr32 on the command line, GetLastError() returns error 0x0000007e, which is ERROR_MOD_NOT_FOUND.
This error is puzzling because I have not changed any project settings since I began working on it. It used to register the DLL fine when I would built it. I run NT4 SP4 with VC6 SP3 on my machine, but a co-worker running Win95 can register the same DLL with no errors. I can also build previous ATL DLLs that I have with no problem.
Does anyone have an idea what could be wrong here? What "resource name" could it be referring to? I have all the registry reources and .rgs files for each COM class. Any help would be appreciated.