How to write a plugin to PN?

Discussion Forums discussion How to write a plugin to PN?

This topic contains 2 replies, has 2 voices, and was last updated by  marokansky 1 year, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
Author Posts
Author Posts
June 12, 2013 at 8:11 pm #19843

marokansky
Participant

I have download PN S.D.K. but it is written in Pascal. I want to write plugin in C or vb.net or C# or Fortran what must be seen from dll to become, a PN plugin?

Sorry for my english.

June 13, 2013 at 8:28 am #19846

simon
Key Master

You can write in C++, in fact the Pascal SDK is for the very old Delphi-based version of Programmer’s Notepad. See this (slightly old version) SDK:

https://code.google.com/p/pnotepad/downloads/detail?name=sdk-2.0.9.921.zip&can=1&q=

Let me know if you need a more up-to-date version.

June 14, 2013 at 8:49 am #19852

marokansky
Participant

I had a problem with “demo” it seems “iface_version” should be 11 and not 8 (solved). Other problem is that this line:
extensions::IAppEventSinkPtr appSink(new AppEventSink());
pn->AddEventSink(appSink);

generates a bug and PN is shout off.
If this line is not in use everything works fine.

How can I read current document path or find and replace some contents in it?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.