I have an executable I'm working on, and I'm using the active template library function AtlHresultFromLastError()
In the project settings i chose to link to atl.lib. However when i compile, it doesn't recognize the function. What do i need to do?

I noticed that MSDN discusses how atl.lib makes it easier to program with COM, does that mean that I need to port my existing program over to a COM application? Does this take a lot of work? (I'm using MFC/Console on top of all that)