title Compiler COM Global Functions | Microsoft Docs ms.custom ms.date 11/04/2016 ms.technology cpp-language ms.topic language-reference dev_langs C++ helpviewer_keywords cl.exe compiler, COM support COM, compiler support ms.assetid 74449d26-50a2-47c7-b175-7cf2cf83533e author mikeblome ms.author mblome ms.workload cplusplus Compiler COM Global Functions Microsoft Specific The following routines are available: Function Description _com_raise_error Throws a _com_error in response to a failure. _set_com_error_handler Replaces the default function that is used for COM error-handling. ConvertBSTRToString Converts a BSTR value to a char *. ConvertStringToBSTR Converts a char * value to a BSTR. END Microsoft Specific See also Compiler COM Support Classes Compiler COM Support