Does any one know what exactly VB does to the Registry when an ActiveX DLL project is loaded into the IDE?

For example, how does another project know to reference the IDE source code rather than the compiled DLL, so that you can step in and Debug it?