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 ,如需转载请自行联系原作者







相关文章
|
程序员 iOS开发 开发者
iOS开发:报错‘Unknown class ViewController in Interface Builder file’解决方法
在iOS开发过程中,会遇到一些比较常见的错误,尤其是刚入门的初级开发者,如果不熟练的话就会出错,本篇博文就来分享一个常见的问题,即报错‘Unknown class ViewController in Interface Builder file’的解决方法。
292 1
iOS开发:报错‘Unknown class ViewController in Interface Builder file’解决方法
|
Android开发 Kotlin
kotlin协程库报错“Program type already present”解决
最近在学习kotlin,学习到协程库这一块了,针对Android的话就是coroutines-android库。本来学习就不容易了,再加上kotlin现在还处于快速变化期,那个酸爽简直了,废话不多说,进入正题。
|
iOS开发
Xcode报错Expected selector for Objective-C and Expected method body
Xcode报错Expected selector for Objective-C and Expected method body
186 0
Xcode报错Expected selector for Objective-C and Expected method body
|
Java 编译器
The amazing thing about Java
The amazing thing about Java
|
Android开发 Kotlin
【错误记录】Kotlin 编译报错 ( Not nullable value required to call an ‘iterator()‘ method on for-loop range )
【错误记录】Kotlin 编译报错 ( Not nullable value required to call an ‘iterator()‘ method on for-loop range )
223 0
【错误记录】Kotlin 编译报错 ( Not nullable value required to call an ‘iterator()‘ method on for-loop range )
|
Java Scala
function implemented in Scala - compiled java code - some closure example
function implemented in Scala - compiled java code - some closure example
92 0
function implemented in Scala - compiled java code - some closure example
SAP BSP source code handling - how is native html source generated by UI framework
SAP BSP source code handling - how is native html source generated by UI framework
SAP BSP source code handling - how is native html source generated by UI framework