1

我下载了tortoise插件示例,但不知道如何在Delphi上实现。

我已经成功编译了 C# 示例,并在存储库中使用它,但是我在 C# 方面的一般开发知识很差。另一方面,我不知道如何开始在 Delphi 中创建该插件,但之后我认为这对我来说很容易。

我想为 Redmine 问题列表集成制作一个插件。

像“hello world”这样的东西会很棒!

这里有一些使用 C# 做一个新插件的指南: http://svn.devjavu.com/traceexplorer/trunk/ext/tortoisesvn.net/issue-tracker-plugins.txt http://tortoisesvn.tigris.org/ds /viewMessage.do?dsForumId=757&dsMessageId=1113569

4

3 回答 3

5

The TSVN plugin API is COM-based. I'd start by learning how to implement a COM object in Delphi. There's this book. I also found this.

If you already know how to implement COM objects in Delphi, then I apologise for being condescending. Do you have any questions specifically about the IBugTraqProvider interface? Oh, and IBugTraqProvider2 is new to TSVN 1.6 (i.e. not released yet).

于 2009-02-13T20:10:16.440 回答
3

File->New->Other...->ActiveX and select COM Object

您将需要接口声明。Delphi 直接支持 *.tlb。如果没有,则必须将 *.idl 转换为 pascal 接口声明。这比听起来容易。请注意,接口声明可能位于 SVN 主干中的某个位置。

您不需要声明您的新 COM 对象实现 IBugTraqProvider 接口,并根据需要实现它。

完成后,您可能需要使用 TortoiseSVN 注册新的 COM 库。

于 2009-04-16T08:53:45.290 回答
2

您可以在此页面上查看功能 C# 插件: http ://www.redmine.org/boards/3/topics/5420

于 2009-04-16T08:21:19.847 回答