天然呆 发表于 2021-8-23 17:31:49

第一课作业

记录自己学习过程。
extern DllExport void ufcre( char *param, int *returnCode, int rlen )
{
    /* Initialize the API environment */
    if( UF_CALL(UF_initialize()) )
    {
      /* Failed to initialize */
      return;
    }

    /* TODO: Add your application code here */
        uc1601("This is new !",1);
    /* Terminate the API environment */
    UF_CALL(UF_terminate());
}

/*****************************************************************************
**Utilities
*****************************************************************************/

/* Unload Handler
**   This function specifies when to unload your application from Unigraphics.
**   If your application registers a callback (from a MenuScript item or a
**   User Defined Object for example), this function MUST return
**   "UF_UNLOAD_UG_TERMINATE". */
extern int ufusr_ask_unload( void )
{
    return( UF_UNLOAD_IMMEDIATELY );
}

页: [1]
查看完整版本: 第一课作业