Jump to content

24U Sample Problems


This topic is 6480 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi,

As far as i understand it, to add an additional function, you must uncomment out the second function block provided in FMTConfig.h, add an additional .cpp file, and in that .cpp file place the following (where "FunctionName" = nameoffunc),

#include "FMPlugin.h"

#include "FMTemplate/FMTemplate.h"

#include

#pragma mark "FunctionName"

FMX_PROC(fmx::errcode) "FunctionName"(short funcId, const fmx::ExprEnv& environment, const fmx::DataVect& dataVect, fmx::Data& result)

Then the code goes here.

Problem is, even if i copy the FMPluginVersion.cpp provided exactly, swap the names around in the places mentioned above it refuses to recognise the second function in FM.

Further, if i attempt to change the function name of the first sample version function in the FMTConfig.h file and then the section in the .cpp file mentioned above, i get two compile errors.

All this seems to point towards another location at which i'm meant to register the function but i just can't seem to find it. Any help would be great.

Cheers,

~Genx

Edited by Guest
Link to comment
Share on other sites

  • 1 month later...

This topic is 6480 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.