User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: plug a C++ code into Fusion

  1. #1
    Clicker Multimedia Fusion 2
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)iOS Export Module (Steam)

    Join Date
    May 2012
    Location
    King's Landing
    Posts
    143
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question plug a C++ code into Fusion

    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 !

  2. #2
    Clicker Fusion 2.5Android Export Module
    Fusion 2.5 (Steam)Android Export Module (Steam)iOS Export Module (Steam)
    RootKernel's Avatar
    Join Date
    Dec 2012
    Posts
    121
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    Hi

    No you can't bundle C++ code directly you need to develop an extension (you can find the SDKs on the forum)

  3. #3
    Clicker Multimedia Fusion 2
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)iOS Export Module (Steam)

    Join Date
    May 2012
    Location
    King's Landing
    Posts
    143
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    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 !

  4. #4
    Clicker Multimedia Fusion 2
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)iOS Export Module (Steam)

    Join Date
    May 2012
    Location
    King's Landing
    Posts
    143
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hello !
    So, i'm working with the MMF2 windows SDK;
    i'm filling the main.ccp file. I'm working on this code :

    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 .

  5. #5
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    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

  6. #6
    Clicker Multimedia Fusion 2
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)iOS Export Module (Steam)

    Join Date
    May 2012
    Location
    King's Landing
    Posts
    143
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    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 : https://github.com/ClickteamLLC/windows-edif
    Unfortunately, I didn't see any help ...

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export Module
    conceptgame's Avatar
    Join Date
    Apr 2011
    Location
    Switzerland
    Posts
    741
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    I wrote a small tutorial for the Extension development (in french):
    http://community.clickteam.com/threads/77575-Tutorial-pour-SDK-EDIF-extension-VideoCapture

  8. #8
    Clicker Multimedia Fusion 2
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)iOS Export Module (Steam)

    Join Date
    May 2012
    Location
    King's Landing
    Posts
    143
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    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 !

  9. #9
    Clicker Multimedia Fusion 2
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)iOS Export Module (Steam)

    Join Date
    May 2012
    Location
    King's Landing
    Posts
    143
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    No idea ?

  10. #10
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export Module
    conceptgame's Avatar
    Join Date
    Apr 2011
    Location
    Switzerland
    Posts
    741
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    In Main.h, add what you need. But you use your variables in RUNDATA for a proper design.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Fusion 2.5 Developer - Looking for Code optimization and/or Consultation.
    By Logiq121 in forum Paid Design & Development Requests
    Replies: 0
    Last Post: 12th March 2014, 05:56 PM
  2. Multimedia Fusion 2 Sega Genesis/Mega Drive Plug
    By Radoslaw in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 2nd August 2011, 10:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •