plug a C++ code into Fusion

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Good evening,
    In order to solve a game board i'm currently coding, I realised a small C++ function which works perfectly in console mode. The function has to read a 4X4 int static array, and an int , in input; and returns a 5X4X4 int static array, and a string vector for outputs.

    So, my question is, how can i plug this code into fusion in order to make an Android app in a first time, then, an iOS app ?

    Thanks for answering me !

  • Good morning,

    Ok, that's what I'm triying to do. I want to develop a windows extension, first with my old MMF2, to know how it works. I 've read the documentation (the help in mmf2), but i didn't understand it... Does anybody would like to send me a source code of a simple extension (for example, just making a sum of two integrer entererd in mmf input box) for windows, (or even android or ios) ?
    I'll understand better and I'll adapt it, since my c++ code make just a simple calculation, with no graphical features.

    Tahnks !

  • Hello !
    So, i'm working with the MMF2 windows SDK;
    i'm filling the main.ccp file. I'm working on this code :

    Quote

    long WINAPI DLLExport Expression(LPRDATA rdPtr,long param1)
    {

    long m11 = CNC_GetFirstExpressionParameter(rdPtr, param1, TYPE_INT);
    long m12 = CNC_GetNextExpressionParameter(rdPtr, param1, TYPE_INT);

    My question is, can I replace "long" by "int" ? because m11 and m12 must be integrer .

  • In 32-bit windows, long and int are the same.

    You may want to use EDIF instead of the official SDK, it will make things far easier.

    By the way, this topic is marked as French so I had a hard time finding it.

    Working as fast as I can on Fusion 3

  • Thanks for helping me !
    I didn't know this topic was marked as French ... I must have forgotten to choose multilingual topic .
    I'm intersted in using EDIF instead,
    I've download it at : Please login to see this link.
    Unfortunately, I didn't see any help ...

  • Thanks!
    I've check it, but i'm using the classic MMF SDK;
    Do you know, 1° how do i do to use C++ global values ? Because, when I try to declare my values in main.cpp, i've got an error message.
    2° In my c++ programm, i need to include <string>, <math> and <vector> ; but when i include them in main.cpp , it returns an error message too.

    Thanks for helping me !

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!