看来您在这里缺少 CAPL DLL 导出表中定义的三个元素(功能类别、文本、参数名称)
已创建的函数可以借助表函数导出为 CAPL 代码(CAPL_DLL_INFO_LIST)
。
表的第一行包含版本信息。该行必须以下列方式定义:
{CDLL_VERSION_NAME, (CAPL_FARCALL)CDLL_VERSION, "", "", CAPL_DLL_CDECL, 0xabcd, CDLL_EXPORT },
示例:使用导出表
void CAPLEXPORT far CAPLPASCAL appPut(unsigned long x)
{
data = x;
}
CAPL_DLL_INFO4 table[] = {
{CDLL_VERSION_NAME, (CAPL_FARCALL)CDLL_VERSION, "", "", CAPL_DLL_CDECL, 0xabcd, CDLL_EXPORT },
{"dllPut", (CAPL_FARCALL)appPut, "CAPL_DLL","This function will save data from CAPL to DLL memory",'V', 1, "D", "\000", {"x"}},
{0, 0}
};
CAPLEXPORT CAPL_DLL_INFO4 far * caplDllTable4 = table;