The best way to debug a module that fails to register is by opening REGSVR32.EXE in a debugger and step through your DllRegisterServer code. All that regsvr32 does is call your DllRegisterServer exported function and that does all the work. So you just have to debug that, from within your project specificy regsvr32 as the executable to run, the name of your compiled (DEBUG) DLL as the argument and place a breakpoint in DllRegisterServer. If you do't reach the breakpoint then something is preventing your DLL from loading.
argument and place a breakpoint in DllRegisterServer. If you do't reach the breakpoint then something is preventing your DLL from loading.