C#中用了IntPtr类型,编译时提示说找不到类型或命名空间名称

mianhuaqisi 2011-03-02 10:28:51
C#中用了IntPtr类型,编译时提示说找不到类型或命名空间名称
...全文
690 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
lizhibin11 2011-03-04
  • 打赏
  • 举报
回复
有一个p小写了
mianhuaqisi 2011-03-04
  • 打赏
  • 举报
回复
错误 1 找不到类型或命名空间名称“Intptr”(是否缺少 using 指令或程序集引用?)

代码里用的是这个 方法

public Intptr FormNameAt(int x,int y)
{

IntPtr tem_hWnd;
tem_Handle=(IntPtr)(WindowFromPoint(x.y));
tem_hWnd = tem_Handle;
while(tem_hWnd!=((IntPtr)0))
{
tem_Handle = tem_hWnd;
tem_hWnd =GetParent(tem_hWnd);
}
return tem_handle;
}

一楼我二楼的试过了 ,不行
wuyq11 2011-03-02
  • 打赏
  • 举报
回复
命名空间:System
[SerializableAttribute]
[ComVisibleAttribute(true)]
public struct IntPtr : ISerializable
evil9999 2011-03-02
  • 打赏
  • 举报
回复 1
System.IntPtr

111,093

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧