大虾们:我创建了一个无窗体的单元文件,在单元文件里写了如下代码。
我在有窗体单元用self和handle都是可以的是不是缺了那个单元文件
我动态创建控件,PowerPointApplication:=TPowerPointApplication.Create(self);
编译说[Error] yueppt.pas(99): Undeclared identifier: 'self'
但是我已经uses 了classes
写了一个messagebox(handle,'答案数据库无法打开','警告',mb_ok);
编译说[Error] yueppt.pas(149): Undeclared identifier: 'handle'
我定义了一个count:single;
写了result:=int(count);
编译说:[Error] yueppt.pas(224): Incompatible types: 'Integer' and 'Extended'
我在有窗体单元用self和handle都是可以的是不是缺了那个单元文件
我动态创建控件,PowerPointApplication:=TPowerPointApplication.Create(self);
编译说[Error] yueppt.pas(99): Undeclared identifier: 'self'
但是我已经uses 了classes
写了一个messagebox(handle,'答案数据库无法打开','警告',mb_ok);
编译说[Error] yueppt.pas(149): Undeclared identifier: 'handle'
我定义了一个count:single;
写了result:=int(count);
编译说:[Error] yueppt.pas(224): Incompatible types: 'Integer' and 'Extended'
解决方案 »
- 怎样在运行时打开listbox的items对话框,增加项目 ,在线等...
- DLL问题,急!为什么调用了接口后死循环出不来
- 如何用程序实现启动/停止局域网内其它机器上的SQL Server 服务器?
- 【急】如何获得硬件信息????
- 在Memo中输入的过程可以使用吗?
- 删除字符左或右边的空格用什么函数?
- 请问那里有WINDOWS API函数库?
- 有没有代码(扫描对方所有端口)
- delphi6的问题
- 请教在在DLL中的Form上加入ADO,在Form.Create是为什么会报'尚未调用coInitiailize’(使用的是Delphi5)
- 大四朋友留下QQ和E-mail,大家共同讨论学习,共同进步!
- 减少内存占用问题,请大家帮忙
很显然,这一句TPowerPointApplication.Create(self);所在的函数是一个孤立的函数,self没有任何含义,改为TPowerPointApplication.Create(application);。handle也是这个问题,改为application.handle