API 설명서 > Miscellaneous > Object ProToolkit > Function ProToolkitTaskExecute
Function ProToolkitTaskExecute
Description
Causes Creo Parametric to execute a function in a DLL. Note: The DLL must have been compiled in Pro/ENGINEER Wildfire 1.0 or later. Note:When done reading output_arguments, call ProArgumentProarrayFree to free the data.
Replacement in Object TOOLKIT:
Synopsis
#include <ProToolkitDll.h>
ProToolkitTaskExecute
(
/* (In)
The DLL handle.
*/
ProCharPath function_name
/* (In)
The name of the function to call in the DLL. This function must have been declared in the application using the PRO_TK_DLL_EXPORT macro and it must have a signature identical to the signature declared for ProTKDllFunction.
*/
ProArgument* input_arguments
/* (In)
A ProArray of input arguments passed to the DLL function. This array should not contain any ProValueData structures of type PRO_VALUE_TYPE_POINTER.
*/
ProArgument** output_arguments
/* (Out)
A ProArray of output arguments outputted from the DLL function. The called function should not populate this array with any ProValueData structures of type PRO_VALUE_TYPE_POINTER.
*/
ProError* function_return
/* (Out)
The return value of the DLL function.
*/
)
Returns
The DLL function execution succeeded.
one or more of the arguments was invalid.
application handle is valid but the app was not running.
The DLL function returned something besides PRO_TK_NO_ERROR. Check the value of function_return for more details.
The function named could not be found and called.
One or more of the function argument arrays contain value data of type PRO_VALUE_TYPE_POINTER. These structures cannot be transferred.
User Guide References
도움이 되셨나요?