WSDuplicateLink (C 函数)
范例
基本范例 (1)
#include "wstp.h"
/* make a copy of a link */
WSLINK f(WSLINK lp)
{
WSLINK newlink;
int error;
newlink = WSDuplicateLink(lp, (const char *)"Duplicate 1", &error);
if(newlink == (WSLINK)0 || error != WSEOK)
{ /* unable to create a copy of the link */ }
return newlink;
}
参见
C 函数: WSSetUserData() WSUserData()
相关指南
历史
1996年引入 (3.0) | 在以下年份被更新:2007 (6.0)