Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 1.16 KB

File metadata and controls

42 lines (33 loc) · 1.16 KB
Error in user YAML: (<unknown>): did not find expected ',' or ']' while parsing a flow sequence at line 11 column 22
---
title: "_com_error::Source | Microsoft Docs"
ms.custom: ""
ms.date: "11/04/2016"
ms.reviewer: ""
ms.suite: ""
ms.technology: ["cpp-language"]
ms.tgt_pltfrm: ""
ms.topic: "language-reference"
f1_keywords: ["_com_error.Source", ]
dev_langs: ["C++"]
helpviewer_keywords: ["[""Source method [C++]""]"]
ms.assetid: 55353741-fabc-4b0c-9787-b5a69bb189f2
caps.latest.revision: 6
author: "mikeblome"
ms.author: "mblome"
manager: "ghogen"
translation.priority.ht: ["cs-cz", "de-de", "es-es", "fr-fr", "it-it", "ja-jp", "ko-kr", "pl-pl", "pt-br", "ru-ru", "tr-tr", "zh-cn", "zh-tw"]
---

_com_error::Source

Microsoft Specific

Calls IErrorInfo::GetSource function.

Syntax

  
_bstr_t Source() const;  
  

Return Value

Returns the result of IErrorInfo::GetSource for the IErrorInfo object recorded within the _com_error object. The resulting BSTR is encapsulated in a _bstr_t object. If no IErrorInfo is recorded, it returns an empty _bstr_t.

Remarks

Any failure while calling the IErrorInfo::GetSource method is ignored.

END Microsoft Specific

See Also

_com_error Class