Function ProFileOpenRegister
Description
Register a file type with the 'File -> Open' dialog interface of Creo Parametric.
NOTE: The ProFileMdlnameOpen OR ProFileMdlfiletypeOpen API opens a standard file dialog. ProFileOpenRegister does not work with this API.
Replacement in Object TOOLKIT:
Synopsis
#include <ProUtil.h>
ProFileOpenRegister
(
wchar_t* file_type
/* (In)
File type
*/
wchar_t* file_description
/* (In)
Short description of the file.
*/
/* (In)
File Access function; NULL is always available
*/
/* (In)
Action on selection of the file type
*/
ProAppData app_data
/* (In)
The application data, may be NULL
*/
)
Returns
File type is registered in the dialog.
One or more input arguments was invalid.
Couldn't allocate memory for new type.
Already registered by this app.
Failed to register type.
Sample Code References
User Guide References
¿Fue esto útil?