Not sure what "can this be used in SQL 2005?" means.
If you are saying that you have a COM component and you want to call it from SQL 2005, then yes you can, but most of the ways to do it are either deprecated or classified as "UNSAFE". If your component supports OLE automation, then you could use the sp_OA* calls, although they generally seem to be discouraged.