在DLL中有一个函数:
函数定义:extern "C" bool __declspec(dllexport) __stdcall EvideoOpenRoom(BSTR RoomIP, BSTR ServerIP, int iFlag)
参数说明:RoomIP,房间IP,指定哪个包厢需要开房;ServerIP,系统服务器IP; iFlag,是否保留---------------------------------------------------------------------------------------------------------
如果用VB调用, 定义为:
function EvideoOpenRoom(RoomIP as String ,ServerIP as String , iFlag as Integer) as Boolean
在Windows 2000中和Vista 中运行, 都是同一个返回结果,如False但是Delphi 7中调用, 定义为:
function EvideoOpenRoom(RoomIP, ServerIP: WideString; iFlag: Integer): boolean在windows2000中运行,返回False, 在Vista 中返回True, 这不同的结果是什么导致的?请教,请教~~
函数定义:extern "C" bool __declspec(dllexport) __stdcall EvideoOpenRoom(BSTR RoomIP, BSTR ServerIP, int iFlag)
参数说明:RoomIP,房间IP,指定哪个包厢需要开房;ServerIP,系统服务器IP; iFlag,是否保留---------------------------------------------------------------------------------------------------------
如果用VB调用, 定义为:
function EvideoOpenRoom(RoomIP as String ,ServerIP as String , iFlag as Integer) as Boolean
在Windows 2000中和Vista 中运行, 都是同一个返回结果,如False但是Delphi 7中调用, 定义为:
function EvideoOpenRoom(RoomIP, ServerIP: WideString; iFlag: Integer): boolean在windows2000中运行,返回False, 在Vista 中返回True, 这不同的结果是什么导致的?请教,请教~~
解决方案 »
- VB!!!!去掉s1中的出现在s2中的字符,帮忙看看
- 加入where条件查处无数据,该如何使程序继续
- webbrowser控件打开含有javascript的网页时出现 自动化错误,怎么解决呢?
- MDI窗体与WebBrowser的问题
- 关于日期查询的问题?(在线等待)
- 程序中调用的文件路径和安装后的路径怎么样统一
- 关于CommonDialog控件Filter属性的问题!
- 一个关于PaintPicture的Op参数的问题,急!
- 我怎么定制DataGrid控件每个列的长度啊!
- 我vb菜单里没有了 添加datareport是怎么回事?
- 关于后台找色的问题,高手来帮助下,在次先谢谢了
- 请问为什么我关闭窗体(执行完Unload me)后,任务管理器中这个程序还在运行?
private declare function EvideoOpenRoom lib "YouDLLName.dll"(byval RoomIP as String ,byval ServerIP as String ,byval iFlag as long) as long
function EvideoOpenRoom(RoomIP, ServerIP: WideString; iFlag: Integer): boolean;stdcall;
far;external 'SendWineEV.dll' name 'EvideoOpenRoom';为何这两种函数在vista 中运行结果不同呢? 不过我觉得dephi 是有问题的