Building for FAR 2.0

A place where plug-in developers can share their knowledge and experience.
Post Reply
pepak
Posts: 604
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 17 times
Been thanked: 54 times

Building for FAR 2.0

Post by pepak »

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: 1023
Joined: Wed 27 Jul, 2005 19:36
Contact:

Re: Building for FAR 2.0

Post by chupakabra »

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: 795
Joined: Mon 03 Oct, 2005 22:42
Has thanked: 35 times
Been thanked: 6 times

Re: Building for FAR 2.0

Post by techie »

chupakabra wrote:Read the changelog to find out about all other API changes.
Are those available in English?
Maximus5
Posts: 3295
Joined: Sun 11 Nov, 2007 02:03
Been thanked: 10 times
Contact:

Re: Building for FAR 2.0

Post by Maximus5 »

changelog_eng, obviously
User avatar
techie
Posts: 795
Joined: Mon 03 Oct, 2005 22:42
Has thanked: 35 times
Been thanked: 6 times

Re: Building for FAR 2.0

Post by techie »

I see. Thanks.
Post Reply

Return to “Plug-In Developers”