首页 > 技术 > 技术文摘 > UniMedia IDE集成环境调用DLL动态库实例解析

UniMedia IDE集成环境调用DLL动态库实例解析

2009-05-22 00:00:00   作者:   来源:   评论:0 点击:


2009/05/22

1.目标功能
  在IDE中调用动态库,实现字符串变大写功能。
  DLL动态库编写
2.IDE脚本实例
//假定动态库名为StringUpper.dll,存放在D:根目录下
///////////////////////////////////////////////////////
sub main(LIST& cpl) //进程主函数
{
//函数定义局部变量
DLL dllComm
int iRet, g_iCommDllId, iDllRet
string sDir,sDllOutParam

// 确定动态库的全路径
sDir=”D:\StringUpper.dll"
//打开动态库对象
g_dllComm.OpenDll(sDir,g_iCommDllId,false,iRet)

//调用动态库方法
g_dllComm.CallFunc("Upper","abc", sDllOutParam,iDllRet,iRet)

//...
//关闭动态库对象
g_dllComm.CloseDll()
}

CTI论坛报道

相关阅读:

  • 0

  • 0

  • 0

  • 0

  • 0

  • 0

  • 0

  • 0

分享到:   收藏

专题