admin 发表于 2016-3-28 16:55:02

UG NX二次开发:创建一个临时文件的函数uc4577

UG NX二次开发:创建一个临时文件的函数uc4577
非常ok的一个函数,特意放在这里,供大家使用,可以随机的创建一个临时的文件,如果代码里有每次不固定的字符串,可以使用这个函数哦!!

Defined in: uf_cfi.h


Overview

The name returned is a unique name for a temporary file.The resultant
filename is unique from other processes at the time.From a single
process, filenames will begin duplicating after the first 1,679,615 calls
to uc4577.Temporary files should be deleted when no longer needed by an
application.If the files are not deleted, there is a chance that the same
name may come up again if the same user happens to get the same process id
on a later date.

The maximum number of characters which will be returned is 12.


Environment

InternalandExternal


Required License(s)

gateway


int uc4577
(
char fname [ UF_MAX_UNIQUE_FILE_NAME_BUFSIZE ]

)


charfname [ UF_MAX_UNIQUE_FILE_NAME_BUFSIZE ] OutputUnique filename
页: [1]
查看完整版本: UG NX二次开发:创建一个临时文件的函数uc4577