Yeah, I know, I just like figuring out stuff that doesn't really have a point to but I would just like to know how to modify the code so that it doesn't freeze. I know I can use installers and regsvr32 but I'm trying to figure out how to use that code to register dlls without regsvr32.