delphi中cannot find implementation of method2010

简介:

delphi中cannot find implementation of method2010

delphi中cannot find implementation of method WebBrowser1DocumentComplete

使用一个自定义的函数之前,要在代码中的implementation区域给函数做一个声明

例如:
type中:
procedure WebBrowser1DocumentComplete(Sender: TObject;
      const pDisp: IDispatch; var URL: OleVariant);这样就声明了一个方法

您可以把光标定位到这上面声明语句上,然后按下Ctrl+Shift+C,编译器会自动在implementation区域为您生成这个过程活函数的代码块如下:
implementation中:
procedure TForm1.WebBrowser1DocumentComplete(Sender: TObject;
const pDisp: IDispatch; var URL: OleVariant);
begin

end;
 
 

一般出现这种情况是因为直接复制其他窗口到新窗口













本文转自鹅倌51CTO博客,原文链接:http://blog.51cto.com/kaixinbuliao/842771 ,如需转载请自行联系原作者







相关文章
|
3月前
|
缓存 Dart 开发工具
解决Flutter报错The method ‘File.create‘ has fewer named arguments than those of overridden method
解决Flutter报错The method ‘File.create‘ has fewer named arguments than those of overridden method
60 3
|
1月前
|
前端开发 Python
Python Tricks-- Abstract Base Classes Keep Inheritance in Check
Python Tricks-- Abstract Base Classes Keep Inheritance in Check
|
6月前
Could not find method debug()
Could not find method debug()
252 59
|
程序员 iOS开发 开发者
iOS开发:报错‘Unknown class ViewController in Interface Builder file’解决方法
在iOS开发过程中,会遇到一些比较常见的错误,尤其是刚入门的初级开发者,如果不熟练的话就会出错,本篇博文就来分享一个常见的问题,即报错‘Unknown class ViewController in Interface Builder file’的解决方法。
472 1
iOS开发:报错‘Unknown class ViewController in Interface Builder file’解决方法
|
Java 关系型数据库 MySQL
15. 成功解决:java: Can't generate mapping method with primitive return type.
今天启动 SpringBoot 项目时,报了如下错误:`java: Can't generate mapping method with primitive return type.`
1016 0
|
iOS开发
Xcode报错Expected selector for Objective-C and Expected method body
Xcode报错Expected selector for Objective-C and Expected method body
220 0
Xcode报错Expected selector for Objective-C and Expected method body
|
iOS开发
iOS - Runtime Method Swizzling(上)
Runtime合集 iOS - Runtime基础
iOS - Runtime Method Swizzling(上)
|
监控 iOS开发
iOS - Runtime Method Swizzling(下)
Runtime合集 iOS - Runtime基础
|
iOS开发
iOS - Runtime Method Swizzling(中)
Runtime合集 iOS - Runtime基础