最近用lazarus 3.0/fpc 3.3.1时发现原来在lazarus 2.2.6/fpc3.2.2能编译安装的控件出现类似下面的提示
codebot.text.xml.pas(129,10) Error: Forward declaration not solved "NewDocument:IDocument;"
解决方法:
本例子参照DocumentCreate: IDocument,在实现部分编写过程。
{$if FPC_FULLVERSION>=30301} {$ifdef windows} function NewDocument: IDocument; begin Result := TDocument.Create(CreateOleObject('Msxml2.DOMDocument') as IXMLDOMDocument); end; {$endif} {$endif}
添加function NewDocument: IDocument;后重新编译就可以了。
标签:控件,xxxx,solved,declaration,编译,IDocument,Error,Forward From: https://www.cnblogs.com/qiufeng2014/p/18029763