ITcTypeSystem2::ImportDataTypesFromTmcFile
Loads a .tmc file, reads TcModuleClass/DataTypes, and imports all data types contained therein into the type system. An additional text buffer may return minor errors from the import.
Signature
HRESULT ImportDataTypesFromTmcFile(BSTR filePath, BSTR* pErrorMessage, LONG* pImportedDataTypes);
Parameter
Name | Type | Description |
|---|---|---|
filePath | BSTR | [in] Path to the |
pErrorMessage | BSTR* | [out] Optional error message for the import. |
Return value
Name | Type | Description |
|---|---|---|
pImportedDataTypes | LONG* | [out, retval] Number of imported data types. |
(HRESULT) | HRESULT |
|
Error codes
E_POINTER:pErrorMessageorpImportedDataTypesisNULL.- errors that are passed on, such as when the file cannot be read or its contents cannot be imported.