大家帮忙看看这个问题,怎么回事呀?illegal character in input file:' '(@A1A1)

Tensionli 2004-10-28 04:21:56

procedure TForm1.Timer1Timer(Sender: TObject);
var
s : PChar;
i,n : Integer;
p : TPoint;
h : Integer;
c : Integer;
begin
GetCursorPos(p);
h := WindowFromPoint(p);
n := GetWindowLong(h,GWL_STYLE);
if (n and $20) <> 0 then
begin
c := SendMessage(h,EM_GETPASSWORDCHAR,0,0);   //这句报错,编译都通不过
PostMessage(h,EM_SETPASSWORDCHAR,0,0);
i := SendMessage(h,WM_GETTEXTLENGTH,0,0);
inc(i);
GetMem(s,i);
SendMessage(h,WM_GETTEXT,i,longint(s));
Edit_PassWord.Text := s;
PostMessage(h,EM_SETPASSWORDCHAR,c,0);
FreeMem(s);
end;
end;


报错信息:illegal character in input file:' '(@A1A1)
...全文
238 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
hsmserver 2004-10-28
  • 打赏
  • 举报
回复
呵呵,楼主想盗密码吗?
c := SendMessage(h,EM_GETPASSWORDCHAR,0,0);
这句是没问题的,可能正如楼上所说,但是感觉不象他们所说的那个原因,因为你后面的注解当时在写程序的时候肯定没有加上,你肯定不会知道它会出错,所以肯定不是这的错误。
或者可能存在原因是你获取的是一个无效的句柄,或者根本不能识别那些字符。
erace992001 2004-10-28
  • 打赏
  • 举报
回复
有汉字空格或者汉字标点在里面,最好的办法就是把这条语句重写一次,不是拷贝再粘贴
readersm68 2004-10-28
  • 打赏
  • 举报
回复
嗯?啊...噢
梅青松 2004-10-28
  • 打赏
  • 举报
回复
c := SendMessage(h,EM_GETPASSWORDCHAR,0,0);   //这句报错,编译都通不过
--这行有不合法的字符,用delete键在空白除删一下即可
Tensionli 2004-10-28
  • 打赏
  • 举报
回复
自己UP
包含如下操作系统版本 FreeBSD Linux Solaris Windows 分别对应如下目录 MegaCLI for DOS MegaCLI for Linux MegaCLI for Solaris MegaCLI for FreeBSD MegaCLI for Windows ********************************************* LSI Corp. MegaRAID MegaCLI Release ********************************************* Release Date: 01/20/14 ======================== Supported Controllers ================== MegaRAID SAS 9270-8i MegaRAID SAS 9271-4i MegaRAID SAS 9271-8i MegaRAID SAS 9271-8iCC MegaRAID SAS 9286-8e MegaRAID SAS 9286CV-8e MegaRAID SAS 9286CV-8eCC MegaRAID SAS 9265-8i MegaRAID SAS 9285-8e MegaRAID SAS 9240-4i MegaRAID SAS 9240-8i MegaRAID SAS 9260-4i MegaRAID SAS 9260CV-4i MegaRAID SAS 9260-8i MegaRAID SAS 9260CV-8i MegaRAID SAS 9260DE-8i MegaRAID SAS 9261-8i MegaRAID SAS 9280-4i4e MegaRAID SAS 9280-8e MegaRAID SAS 9280DE-8e MegaRAID SAS 9280-24i4e MegaRAID SAS 9280-16i4e MegaRAID SAS 9260-16i MegaRAID SAS 9266-4i MegaRAID SAS 9266-8i MegaRAID SAS 9285CV-8e MegaRAID SAS 8704ELP MegaRAID SAS 8704EM2 MegaRAID SAS 8708ELP MegaRAID SAS 8708EM2 MegaRAID SAS 8880EM2 MegaRAID SAS 8888ELP MegaRAID SAS 8308ELP* MegaRAID SAS 8344ELP* MegaRAID SAS 84016E* MegaRAID SAS 8408E* MegaRAID SAS 8480E* MegaRAID SATA 300-8ELP* *These older controllers should work but have not been tested. Component: ========= SAS MegaRAID MegaCLI Release Date: 01/20/14 Version Numbers: MegaCLI =============== =========== Current Version 8.07.14 Previous Version 8.07.07 Contents: ========= This package contains MegaCLI for the following OSes: DOS FreeBSD Linux Solaris Windows Use the MegaCLI components from the folder that matches your OS. Enhancements and Bug Fixes ========================== SCGCQ00393585 (DFCT) - VD creation from MegaCli fails on Solaris Sparc 10u9 operating system. SCGCQ00413883 (DFCT) - "megacli -version -pd -a0" Segmentation Faults if PDs are missing SCGCQ00445356 (CSET) - Megacli crashes after invoking any command in SGI system with one 9280-8e and 2 quad port qlogic FC cards. SCGCQ

1,183

社区成员

发帖
与我相关
我的任务
社区描述
Delphi Windows SDK/API
社区管理员
  • Windows SDK/API社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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