Search found 73 matches
- Wed 30 Dec, 2015 15:41
- Forum: General Discussions
- Topic: Using Python in Far
- Replies: 15
- Views: 32509
Using Python in Far
134681 1. One that provides access to Far API from Python code and I don't know any sane way to call C++ from Python. At the moment at least my Python plugin uses cffi for Python to access C/C++. I like it as it moves most code to the Python side. I'll try to post my code shortly, I'll just have to...
- Thu 22 Oct, 2015 15:27
- Forum: Plug-In Developers
- Topic: How to assign GUID to Info->PluginMenu.Guids
- Replies: 9
- Views: 22850
[Solved]How to assign GUID to Info->PluginMenu.Guids
All your project is wasting time. If you will not try to figure out what you do. What?!, is this supposed to be some kind of encouragement. Where did I write that I wouldn't try to figure out what to do? I'm just trying to minimize wasting of limited resourses (My patience, motivation and my sanity...
- Thu 22 Oct, 2015 14:39
- Forum: Plug-In Developers
- Topic: How to assign GUID to Info->PluginMenu.Guids
- Replies: 9
- Views: 22850
[Solved]How to assign GUID to Info->PluginMenu.Guids
Sure it didn't, if you returned address of a local variable. As mentioned in PluginMenuItem description, all pointers passed through this structure must be valid after returning from GetPluginInfoW, so you can't use local variables. Use static or global ones. I think I'm starting to understand, tha...
- Thu 22 Oct, 2015 01:30
- Forum: Plug-In Developers
- Topic: How to assign GUID to Info->PluginMenu.Guids
- Replies: 9
- Views: 22850
How to assign GUID to Info->PluginMenu.Guids
So finally this crisis is over. :Yahoo!: When trying to define the GUID as an array I used this: GUID MenuId[1]; But it didn't work. But using this below: GUID *MenuId = new GUID[1]; This works. I assumed they would have more or less the same effect but what do I know. I'm convinced that the designe...
- Wed 21 Oct, 2015 19:18
- Forum: Plug-In Developers
- Topic: How to assign GUID to Info->PluginMenu.Guids
- Replies: 9
- Views: 22850
How to assign GUID to Info->PluginMenu.Guids
Checking the FAR API manual (after translation) it says "Info->PluginMenu.Guids" wants an "address of an array of GUIDs" unfortunately it didn't help me figure out how I need to define the variable. So still would like some hints.
jonib
jonib
- Wed 21 Oct, 2015 17:13
- Forum: Plug-In Developers
- Topic: How to assign GUID to Info->PluginMenu.Guids
- Replies: 9
- Views: 22850
How to assign GUID to Info->PluginMenu.Guids
Separate, OK especially considering this: 132941 please no more unrelated to Python suggestions As I'm doing the plugin in C++ I only meant I wasn't interested in doing plugins in other languages unless they helped me support Python. I could have probably worded it differently but frustration and h...
- Wed 21 Oct, 2015 16:29
- Forum: Plug-In Developers
- Topic: How to assign GUID to Info->PluginMenu.Guids
- Replies: 9
- Views: 22850
How to assign GUID to Info->PluginMenu.Guids
Working with the HelloWorld plugin as basis still in the function: void WINAPI GetPluginInfoW(struct PluginInfo *Info) I'm trying to assing a GUID to: Info->PluginMenu.Guids Problem is I can't figure out anything that works. I declare a new GUID like this: GUID MenuId; And add in the correct values,...
- Tue 06 Oct, 2015 13:03
- Forum: Plug-In Developers
- Topic: Trying to make a Python support plugin
- Replies: 12
- Views: 19818
Trying to make a Python support plugin
So after reading the Internet twice and trying all kinds of stuff and not having any luck, I was about to give up. So I figured I would remove the duplicate declarations from crt.hpp that didn't work, just other errors. Then I tried to remove them from ctype.h and that worked, I was able to compile ...
- Sun 04 Oct, 2015 12:15
- Forum: Plug-In Developers
- Topic: Trying to make a Python support plugin
- Replies: 12
- Views: 19818
Trying to make a Python support plugin
So I did some more reading and apparently the Python.h file needs to be imported first, but that just gives me more errors: making depends for PythonFAR.cpp compiling PythonFAR.cpp In file included from PythonFAR.cpp:2:0: ../common/CRT/crt.hpp: In function 'int isdigit(int)': ../common/CRT/crt.hpp:9...
- Sun 04 Oct, 2015 12:06
- Forum: Plug-In Developers
- Topic: Trying to make a Python support plugin
- Replies: 12
- Views: 19818
Trying to make a Python support plugin
132940 132938 I didn't really like the syntax of LUA There's also another mature framework for creating Far plugins in a managed language: FarNet . It has rich infrastructure, many good examples and an active author. I know of it, but unless it supports Python I'm not interested at this time. so pl...
- Sun 04 Oct, 2015 11:21
- Forum: Plug-In Developers
- Topic: Trying to make a Python support plugin
- Replies: 12
- Views: 19818
Trying to make a Python support plugin
132936 jonib , just in case you didn't hear about it: there is a framework for writing Far Manager plugins in Lua language. See %FARHOME%\Encyclopedia\luafar_manual.chm. Hmm, whats this , it's is you helping me convert a macro to LUA. :) Also, many tasks you may want to accomplish via plugins can b...
- Sun 04 Oct, 2015 11:05
- Forum: Plug-In Developers
- Topic: Trying to make a Python support plugin
- Replies: 12
- Views: 19818
Trying to make a Python support plugin
132935 1. Add the following lines to makefile_gcc before the first "include" entry. Thanks, but that didn't help I get the same error still. Damn I'm starting to feel stupid when I can't even get the basic stuff to work. :? 2. Look for "-I $(COMMON)" in plugins\makefile_gcc_def_...
- Sun 04 Oct, 2015 00:47
- Forum: Plug-In Developers
- Topic: Build HelloWorld.cpp plugin
- Replies: 5
- Views: 14970
Build HelloWorld.cpp plugin
I don't think there are any guides, but feel free to ask anything. I guess I'll have to, even though its not my style. I posted a separate thread for the plugin I'm trying to make. To compile it as C rename HelloWorld.cpp to HelloWorld.c and change makefile_gcc appropriately. That didn't go too wel...
- Sun 04 Oct, 2015 00:46
- Forum: Plug-In Developers
- Topic: Trying to make a Python support plugin
- Replies: 12
- Views: 19818
Trying to make a Python support plugin
So I am tired to wait for someone to add Python support for Far manager, so I'll try myself. I did some basic courses in C/C++ about 20 years ago and I really never liked to code in it. So I'm rusty/have no idea what I'm doing. So my first problem I tried to add the "Python.h" header to th...
- Mon 28 Sep, 2015 08:17
- Forum: Plug-In Developers
- Topic: Build HelloWorld.cpp plugin
- Replies: 5
- Views: 14970
Build HelloWorld.cpp plugin
132861 You need to build CRT first, see plugins\common\CRT\makefile_lib_gcc First of THANKS :bojan: I got it compiled (and showing in FAR) Damn that did cross my mind (hey should I compile CRT first) but then decided that the makefile was supposed to do all that for me. :-( Now that I got something...