If you would like to know how to register using OS commands after successful build, you can type this command in the same folder, where DLL file resides in it, at command prompt. regsvr32 yourdllname.dll If you ask me how to implement DllRegisterServer() function, I can't know how to because I don't know anything about your project. Depending on your project, ...