Follow a SIMPLE tutorial to make a plugin with C

Anulowany Opublikowano Mar 25, 2015 Płatność przy odbiorze
Anulowany Płatność przy odbiorze

** You do not need to download FileMaker to complete this project. You can send the .fmplugin or .fmx file as well as the Xcode project to me to test. A free trial version is available if you are inclined to do so. **

Add an external function to the sample plugin using step 4 of the instructions found in the attached [url removed, login to view] file.

Step 4 follows (also attached):

4. Add new functions

With the 24U Plug-In Template, adding new functions to your plug-in is quite simple. To define a new function, open the "FMTConfig.h" header file, scroll to the "Function definitions" section, and uncomment the first commented block of #defines. Then change the four macros according to the function you are going to create.

There are 10 predefined function definition blocks in the FMTConfig.h file, which should be enough for most plug-ins. By default, there is one function already defined for your convenience - the Version function.

Let's say you want to add a second function named "MyFunction" to your plug-in. This function is going to take two parameters, the first one being required, and the second one optional. To define this function as a second function of your plug-in, available for both client and server-side calculations, uncomment the second definition block and modify it to look like this:

#define FUNCTION_2_C_NAME MyFunction

#define FUNCTION_2_FLAGS fmx::ExprEnv::kMayEvaluateOnServer | \

fmx::ExprEnv::kDisplayInAllDialogs

#define FUNCTION_2_PARAMS kAtLeast_1_Parameter, kAtWorst_2_Parameters

#define FUNCTION_2_PROTOTYPE "MyFunction( param1; { param2 } )"

After this modification, you should add source code for the function "MyFunction" to the project so that it can be registered by the initialization handler in the "[url removed, login to view]" file. Your function should have the following prototype:

FMX_PROC(fmx::errcode) MyFunction( short funcId,

const fmx::ExprEnv& environment,

const fmx::DataVect& dataVect,

fmx::Data& result )

We suggest that you write the function code in a new file named "[url removed, login to view]" after the function. This way you will keep the project clean and all external functions easily accessible. Save the new file into the "Source" folder, and add it to all targets of the project you are using.

You don't have to create header files with your external function prototypes to include into the "[url removed, login to view]" file. All external functions will get declared automatically, using the definitions from the "FMTConfig.h" header file. All you need to edit are the files you create on your own and the predefined files in the "Source" folder.

############

Those are the instructions from C. I would like MyFunction to VERY SIMPLY return a string. That’s it. “Hello World” is fine. I’m just struggling to get to that point. I will have more work if you complete this to a happy place.

Once you prove you can do this, I have another project (DON’T INCLUDE THIS IN THIS BID) that is just writing one function in C that calls [url removed, login to view] from the wordpress API and I'm willing to pay another $100-ish range for that. I will probably private message you and ask how much you would charge for this second bit as well before approving you for this one. Feel free to just say in a message or proposal how much you would charge for that.

[url removed, login to view]

Programowanie C Programowanie w C++

Numer ID Projektu: #7367201

O projekcie

2 ofert Zdalny projekt Aktywny Mar 26, 2015

2 freelancerów złożyło ofertę za $28 w tym projekcie

jasqwerty

I would have to look at FileMaker and the 24U templates (Are they free?) because that's what it sounds like this is using, not just making a straight FileMaker plugin, but I should be able to code up a fairly straightf Więcej

$49 USD w ciągu 1 dnia
(36 Oceny)
5.1
dutsoftware

A proposal has not yet been provided

$25 USD w ciągu 1 dnia
(4 Oceny)
2.9
histvan95

Még nem kapott javaslatot

$30 USD w ciągu 3 dni
(0 Oceny)
0.0