日期:2014-05-17  浏览次数:20984 次

求教:仿照网上的例子做Delphi6.0为ASP开发DLL控件,怎么老是提示变量找不到??
小弟我这两天想用delphi为ASP开发一个DLL组件,在网上找到了一篇文章:http://www.d99net.net/article.asp?id=210,然后用D6.0照着做,但老提示如下错误:
[Error]   Unit1.pas(26):   Undeclared   identifier:   'm_scriptContext '
[Error]   Unit1.pas(31):   Undeclared   identifier:   'm_scriptContext '
[Error]   Unit1.pas(36):   Undeclared   identifier:   'm_scriptContext '
[Error]   Unit1.pas(36):   Missing   operator   or   semicolon
[Error]   Unit1.pas(36):   Illegal   character   in   input   file:   '′ '   ($A1E4)
[Error]   Unit1.pas(36):   Missing   operator   or   semicolon
[Error]   Unit1.pas(36):   ':= '   expected   but   ') '   found
[Error]   Unit1.pas(38):   Expression   expected   but   'END '   found
[Fatal   Error]   Project2.dpr(7):   Could   not   compile   used   unit   'Unit1.pas '

----主要是提示找不到 'm_scriptContext '变量.
交代下,我有把ASPTypeLibrary_TLB文件导入和引用.
我在XP和2003都有提示过,都不行,求CSDN的高手帮帮忙,谢谢拉.



------解决方案--------------------
m_scriptContext这个只是一个自定义变量而已。你引用什么就能让它存在么。哈哈