API | ITcTypeInstance Return value Error codes E_POINTER : pipType is NULL . ADS_E_ERROR : The XML is unreadable or contains a node that is not supported. 5.8.2.3 ITcTypeSystem2::ImportDataTypesFromTmcFile | 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 Return value Error codes E_POINTER : pErrorMessage or pImportedDataTypes is NULL .
errors that are passed on, such as when the file cannot be read or its contents cannot be imported. 5.9 ITcTypeInstance | ITcTypeInstance ITcTypeInstance is the basic interface for data type and temporary type instances. It encapsulates XML serialization, name and GUID access, and the determination of dependent data types. For temporary type instances, only a subset of this functionality is available. Over the years, numerous follow-up ITcTypeInstanceX interfaces have been added, which introduce, among other things, C declarations, child navigation, value formatting, named constants, and namespace information.
Chain of inheritance ITcTypeInstance └── ITcTypeInstance2 └── ITcTypeInstance3 └── ITcTypeInstance4 └── ITcTypeInstance5 └── ITcTypeInstance6 └── ITcTypeInstance7 └── ITcTypeInstance8 └── ITcTypeInstance9 └── ITcTypeInstance10 TE1000 77 Version: 1.7.0 Name Type Description pipType ITcTypeInstance2** [out, retval] Temporary type instance. (HRESULT) HRESULT S OK if successful, otherwise an error code. _ Name Type Description filePath BSTR [in] Path to the .tmc file. pErrorMessage BSTR* [out] Optional error message for the import. Name Type Description pImportedDataTypes LONG* [out, retval] Number of imported data types. (HRESULT) HRESULT S OK if successful, otherwise an error code. _