cfexecute for mathematical algorithms

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default cfexecute for mathematical algorithms

    Hi I need to write C++ programs to do long mathematical algorithms which I
    want to combine into cfm pages. I know java is quicker but i dont use java and
    C++ CFX tags are enough to drive someone mad. Now that MX6.1 can return a
    variable from an executable program, is it feasible to run the exe files thru
    cfexecute. Lets say I've got a number of scalar inputs and return a single
    output. Can anyone show me the cfm/C++ code required to run a function adding
    two numbers together and returning the result as an example? Thanks in advance
    Tim

    gottagetcodin Guest

  2. Similar Questions and Discussions

    1. Anyone mathematical?
      Are you any good at maths? If so I was wondering if you can come up with a nice formular that I can program in Lingo that will calculate the angle...
    2. advanced lingo algorithms
      Alright guys, We all know that lingo is great for eye catching multimedia but programmers are known for laying down the science right? Well I've...
    3. Mathematical differences?!
      Hello all, I ported a algorithm from JavaScript to PHP and noticed that PHP outputs a different result than JS. For example: ...
    4. [PHP] Mathematical differences?!
      How could that be?! 1:1 the same code but different outputs? Is this a PHP-bug? :-? *feelin' kinda' smart arsed today, if no one noticed* ...
    5. Finding algorithms
      What would make a good resource for algorithms? There are ample references APIs, languages, structure and numerical work. But some applications need...
  3. #2

    Default Re: cfexecute for mathematical algorithms

    CFX would be a better choice, of course. You can write a standing-alone EXE
    and CFEXECUTE it, if you want. The following are rules: 1. To pass
    parameters you can use command line arguments and to parse them in your C
    program. Some alternate CFEXECUTE implementations also can use stdin to read
    the data, like this one: [url]http://www.cftagstore.com/tags/cfxexec.cfm[/url] Of
    course, you can use a data file for input also. 2. If you want to return
    something to CF, you have to write to stdout. Stdout stream can be returned
    back to CF. Again an output file is an option also.

    Mr Black Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139