Function ProExtdataSlotWrite
Description
Writes data to the specified data slot.
Replacement in Object TOOLKIT:
Synopsis
#include <ProExtdata.h>
ProExtdataSlotWrite
(
ProExtdataSlot* p_extslot
/* (In)
The handle to the data slot.
*/
int key_by_flag
/* (In)
The key-by flag -- either KEY_BY_ID or KEY_BY_NAME.
*/
int data_type
/* (In)
The data type. The valid types are PRO_INTEGER_TYPE, PRO_DOUBLE_TYPE, PRO_WIDE_STRING_TYPE, PRO_STREAM_TYPE, PRO_CHAPTER_TYPE. PRO_CHAPTER_TYPE behaves similar to PRO_STREAM_TYPE but has no data length limit.
*/
int data_size
/* (In)
The size of the data. This argument applies to PRO_STREAM_TYPE only.
*/
void* p_data
/* (In)
The handle to the data to be written in the specified slot.
*/
)
Returns
The function successfully wrote data to the data slot.
The function failed.
The specified model or class name is invalid.
The specified key_by_flag is invalid.
The specified slot was not found.
The stream data size is greater than 524288 bytes.
The specified data_type is invalid.
Sample Code References
User Guide References
¿Fue esto útil?