hw := FindWindow('xxx',nil)
if hw = 0 then
Exit;看这个语句  他提示我出错
[Error] Unit1.pas(31): Missing operator or semicolon
[Error] Unit1.pas(32): Incompatible types: 'HWND' and 'procedure, untyped pointer or untyped parameter'请问为什么 啊

解决方案 »

  1.   

    FindWindow(
    lpClassName,        {窗口的类名}
    lpWindowName: PChar {窗口的标题}
    ): HWND;              {返回窗口的句柄; 失败返回 0}
      

  2.   

    hw := FindWindow('xxx',nil) Error] Unit1.pas(31): Missing operator or semicolon 不是很明显少了个';'
      

  3.   

    恩 这个问题解决了 ,这个API函数是查找窗口名称的 吧?
    为啥我写了总是找不到呢。
      

  4.   

    窗口句柄  实质为int