Building for FAR 2.0

A place where plug-in developers can share their knowledge and experience.
pepak
Posts: 312
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 1 time
Been thanked: 9 times

Building for FAR 2.0

Postby pepak » Fri 31 Jul, 2009 09:43

OK, my plugin works just fine in FAR 1.75. Now I would like to modify it to compile with any version of FAR - 1.75, 2.0 and 2.0 x64. What do I need? Please note that I am _NOT_ a C/C++ programmer. I know other languages, and some C basics, but I have no idea how to e.g. work with SVN or even how to set up my compiler.

1) My development suite:
- I use DevCPP 4.9.9.2 to compile my plugin
- FAR's plugin SDK 1.75 is included in its libraries
- What do I need to add to be able to
- I don't use SVN and in fact have no idea how one does that. I would prefer to keep all files local, work on them, and if/when they finally work, look into how to publish them.

2) Sources
- Looking at the current official plugin's sources, I will need to replace some things - e.g. use TCHAR instead of char, use EXP_NAME(ExportedName) instead of ExportedName etc.
- Where is EXP_NAME defined? I just can't find it.
- I assume I will need to replace strlen, strcat and such with a different all, too
- What else should I be concerned about?

User avatar
chupakabra
Posts: 1024
Joined: Wed 27 Jul, 2005 19:36
Contact:

Re: Building for FAR 2.0

Postby chupakabra » Fri 31 Jul, 2009 09:57

You need to compare SDK headers for 1.7 and 2.0 to see what differences were made to plugin API. Some of the changes are obvious like use of unlimited length Unicode strings instead of fixed length ANSI strings. Read the changelog to find out about all other API changes.

User avatar
techie
Posts: 712
Joined: Mon 03 Oct, 2005 22:42
Has thanked: 22 times
Been thanked: 2 times

Re: Building for FAR 2.0

Postby techie » Sun 09 Jan, 2011 11:40

chupakabra wrote:Read the changelog to find out about all other API changes.


Are those available in English?

Maximus5
Posts: 3291
Joined: Sun 11 Nov, 2007 02:03
Been thanked: 4 times
Contact:

Re: Building for FAR 2.0

Postby Maximus5 » Sun 09 Jan, 2011 12:10

changelog_eng, obviously

User avatar
techie
Posts: 712
Joined: Mon 03 Oct, 2005 22:42
Has thanked: 22 times
Been thanked: 2 times

Re: Building for FAR 2.0

Postby techie » Sun 09 Jan, 2011 12:38

I see. Thanks.


Return to “Plug-In Developers”

Who is online

Users browsing this forum: No registered users and 1 guest