HRESULT _stdcall SetCursorPos([in] int iCursorPosX, [in] int iCursorPosY );返回类型是HRESULT
这个DLL函数怎么在DELPHI里申明?
这个DLL函数怎么在DELPHI里申明?
解决方案 »
- C#基于access的成绩录入系统
- 在delphi中如何来去除窗体拖动时候产生得阴影
- 要将一个表中数据列到dbcombox中,该做几件事?
- 关于olecontainer有没有方法用滚动条的问题。
- 关于MDI窗体
- 急:在线等关于timer定时扫描数据库时,程序无响应的问提!!
- 关于在DLL中使用Mscom控件的问题
- Delphi Int128 问题求助
- 请问哪位仁兄知道?CSDN.NET的大本营怎么了?为什么进不去????
- TTreeview如何为每一个节点指定不同的图标
- pchar转换到string超过366次后就会报错,如何解决?
- 用StrCopy给一个PChar类型变量赋值,不用它时如何清楚
应该这样声明: function SetCursorPos(iCursorPosX, iCursorPosY :integer):HRESULT;implementation function SetCursorPos; external '*.dll' name '_stdcall SetCursorPos'; 我以前也遇到这样的问题的了,就是这样处理的
[23] function SetCursorPos(iCursorPosX, iCursorPosY :integer):HRESULT;
在implementation里写了
[29] function SetCursorPos; external 'xxxx.dll' name '_stdcall SetCursorPos';提示
(23)Unsatisfied forward or external declaration: 'SetCursorPos'
(29)Previous declaration of 'SetCursorPos' was not ed with the 'overload' directive
"返回值 HRESULT 怎么处理?"
不明白你返回的是什么数据类型?
如果是bool,就是
if SetCursorPos then
...
else
...还有'xxxx.dll' ,这里是你的外面动态库名称
C++:
typedef LONG HRESULT;
HRESULT _stdcall SetCursorPos([in] int iCursorPosX, [in] int iCursorPosY );
Delphi:
function SetCursorPos(iCursorPosX, iCursorPosY:integer ):integer;stdcall;
上面都说是integer了 啊?