注册打开prt回调函数,打开prt弹出打开文件路径信息
/**************************************************************************
**
** UF_add_callback_function.c
**
** Description:
** Contains Unigraphics entry points for the application.
**
****************************************************************************/
/ Include files */
#include <stdarg.h>
#include <stdio.h>
#include <uf.h>
#include <uf_ui_types.h>
#include <uf_ui.h>
#define UF_CALL(X) (report_error( FILE, LINE, #X, (X)))
#define ECHO(X) (printf(“\t%s = %d\n”, #X, X))
static int report_error(char *file, int line, char call, int irc)
{
if (irc)
{
char
err[133],
messg[300];
UF_get_fail_message(irc, err);
sprintf(messg, “\n%s\nerror %d at line %d in %s\n%s”,
err,
题解 - 序列
2024-07-15 08:28:01 86 阅读