activex controls ? registering.

Hi folks,
I' am currently reading Sams Teach Yourself VC++ in 21 days..and have hit a brick wall concerning ActiveX controls.
In other words I have not a clue how to register a control and the book is rather vague on the subject of registering a control. I have performed a search on MSDN and on here for an answer before posting. All links to msdn on here in the search seem to be broken or out of date.

If you have created a self registering component, go to the command prompt and type

regsvr32 myactivex.dll

then

regsvr32 /u myactivex.dll

If you write components with ATL or MFC, all the self registering code is done for you...if not you nee to do it yourself...you house the code in a function called DllRegisterServer....there's a fair bit of registry editing to be done