I already have a project that uses alot of COM, and HRESULTS. ANyways i was wondering if its possible to define your own HRESULT, AND be able to use the FormatMessage() for our own HRESULT?
I dug around and cant find anything. Any ideas?
EDIT
Basically i want to define a set of my own HRESULT's instead of just returning E_FAIL. Or one of the other generic ones. Like E_FAIL is fine. But lets say i want to point out that for example the Geoprocessing subsystem crashed or the file is an invalid Raster Image. The application already uses com through out it.