PowerBuilder中dll的调用
来源:互联网 发布:黑客攻防编程解析 pdf 编辑:程序博客网 时间:2024/05/18 06:23
这段时间一个项目需要与医院HIS系统做对接,我提供了一个用delphi开发的dll文件,其中开放了这样一个函数:
int getDepartment(char username,char password, char *optional,char*resultFile)
可是对方工程师在调用时,传递过来的每个参数都只有第一个字符,查找了大量资料才知道初始化时,
一定要加个别名,指定编码,如下:
<!-- /* Font Definitions */ @font-face{font-family:宋体;panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-alt:SimSun;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 135135232 16 0 262145 0;}@font-face{font-family:"/@宋体";panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal{mso-style-parent:"";margin:0cm;margin-bottom:.0001pt;text-align:justify;text-justify:inter-ideograph;mso-pagination:none;font-size:10.5pt;mso-bidi-font-size:10.0pt;font-family:"Times New Roman";mso-fareast-font-family:宋体;mso-font-kerning:1.0pt;} /* Page Definitions */ @page{mso-page-border-surround-header:no;mso-page-border-surround-footer:no;}@page Section1{size:612.0pt 792.0pt;margin:72.0pt 90.0pt 72.0pt 90.0pt;mso-header-margin:36.0pt;mso-footer-margin:36.0pt;mso-paper-source:0;}div.Section1{page:Section1;}-->
//申明:
functionint getDepartment(ref string loginname,ref string password,ref string optiona,refstring results) library " BaoAnTiJian.dll" ALIAS FOR "getYuyue;Ansi"
//调用
stringls_return,ls_loginname,ls_password ,ls_option
ls_return= "yeyue.xml"
ls_loginname= "test"
ls_password= "test"
ls_option="<opt><begin_date>2010-08-13</begin_date><end_date>2010-08-13</end_date></opt>"
intrecordCount
recordCount= getDepartment(ls_loginname ,ls_password ,ls_option,ls_return)
记录一下,以防下次用到
- PowerBuilder中dll的调用
- 在powerbuilder中调用外部DLL中含有CHAR* *类型参数时的解决方法
- PowerBuilder 调用C++ DLL方法
- powerbuilder调用外部dll文件内函数
- PowerBuilder调用Delphi写的Dll时发生的奇怪问题。
- 关于Powerbuilder调用VC的dll出现的一个问题及解决办法
- VC中DLL的调用
- 在PowerBuilder中动态调用函数
- 在PowerBuilder中调用ChooseColor函数
- PowerBuilder中回车键的应用
- PowerBuilder中回车键的应用
- powerbuilder中指针的应用
- Powerbuilder调用Webservice的两种方法
- powerbuilder中的pbvm90.dll
- Delphi中C++的DLL的调用
- JNI中dll调用dll
- 在ASP中调用.NET的DLL
- 在ASP中调用DLL的方法
- Rigid Bodies(2)
- 全排列递归算法
- VIM插件安装及设置
- oracle9i安装时报缺少ocs4j.properties文件
- struts2 学习笔记- 传智播客 2010-9-9
- PowerBuilder中dll的调用
- Linux 系统的运行级别(Run Level)
- pku 2823(单调队列、线段树)
- 数据库oracle小记
- 哎
- 动态加载so
- 2ME 混淆器的使用:Proguard4.5
- 获取远程图片并把它保存到本地
- Eclipse注释模板