龙七

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年7月13日

摘要: ; not allowed before ELSEElSE前不允许有“;”<clause> clause not allowed in OLE automation section在OLE自动区段不允许“<clause>”子句<name> is not a type identifier<name>不是类型标识符<name> not previously declared as a PROPERTY<name>前面没有说明PROPERTYGOTO <label> leads into or out of TRY 阅读全文
posted @ 2011-07-13 17:37 龙七 阅读(266) 评论(0) 推荐(0) 编辑

摘要: 错误信息形式为: Run-time error nnn at xxxx; 其中nnn是运行时的错误编号; xxxx是运行时的错误地址.编号说明I/O错误: (编号100-149)100磁盘读错误,若要对超过格式文件尾进行读取时101磁盘写错误,若磁盘满时,由CloseFile,Write,Writeln或Flush报告102没有指定文件,若文件变量没有由Assign或AssignFile赋值,由Reset, Rewrite,Append,Rename和Erase报告103文件没有打开,若文件未打开,由CloseFile,Read,Write,Seek,Eof, FilePos,FileSize 阅读全文
posted @ 2011-07-13 17:36 龙七 阅读(1494) 评论(0) 推荐(0) 编辑

摘要: 在看 API 文档时, 我们经常见到 GetLastError; 它可以返回操作后系统给的提示.但 GetLastError 返回的只是一个信息代码, 如何返回对应的具体信息呢?FormatMessage 可以, 但这个函数太复杂了; 可以用 SysErrorMessage 代替它.举例:var err: string; ErrorCode: DWORD;begin ErrorCode:=GetLastError; ShowMessage(IntToStr(ErrorCode)); err := SysErrorMessage(ErrorCode); ShowMessage(err); {操作 阅读全文
posted @ 2011-07-13 14:26 龙七 阅读(535) 评论(0) 推荐(0) 编辑

摘要: 一:创建DLLView Code library DemoDll;{ Important note about DLL memory management: ShareMem must be thefirst unit in your library's USES clause AND your project's (selectProject-View Source) USES clause if your DLL exports any procedures orfunctions that pass strings as parameters or function re 阅读全文
posted @ 2011-07-13 10:29 龙七 阅读(417) 评论(0) 推荐(0) 编辑

摘要: //通过 DLL Wizard 建立: View Code library TestDll;{ Important note about DLL memory management: ShareMem must be thefirst unit in your library's USES clause AND your project's (selectProject-View Source) USES clause if your DLL exports any procedures orfunctions that pass strings as parameters o 阅读全文
posted @ 2011-07-13 10:13 龙七 阅读(242) 评论(0) 推荐(0) 编辑