Regsvr32 not updating registry
In some cases your DLL file may not register properly, and as a result, will provide a "REGSVR32. Fortunately, you can use a built-in utility called "Microsoft Register Server" (regsvr32.exe) to re-register your REGSVR32. DLL and other DLL system errors can be related to problems in the Windows registry. DLL file, but when these programs are uninstalled or changed, sometimes "orphaned" (invalid) DLL registry entries are left behind.
In this case, I know that Dll Register Server is never called (because I create a text file in the beginning of this function and it is not created).
DLL are small programs, similar to EXE ("executable") files, which allow multiple software programs to share the same functionality (eg. For example, let's say you are running Windows and editing a document in Microsoft Word.
The DLL file that controls printing does not need to load unless it's function is needed - eg. When you select "Print", Microsoft Word calls the printer DLL file, and it is loaded into memory (RAM) at that time.
In this case, Dll Register Server returns S_OK, but still I can't find my CLSID in registry and get "Class not registered" error. I've manually added to the existing 32-bit COM new interface, implementation (My New Class) and rgs file.
I'm sure the code is correct (for it doesn't work only on my OS), so it seems that the problem is in OS.