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

  1. #1

    Default coldfusion and c++

    I have a c++ program that I need to write to my coldfusion page. Is there
    specific tag I need to use in my coldfusion page that will recognize the c++
    variables? Any help would be greatly appreciated.

    kaebee Guest

  2. Similar Questions and Discussions

    1. coldfusion-out.log
      Hi everyone, I checked tones of topics about the increase of the size of coldfusion-out.log. And I get no answer. Aparrently there is no...
    2. Running ColdFusion 5.0 and ColdFusion 6.1 concurrently
      Hi, this is my first post on this forum, I have tried looking but could not find a post that discussed my problem. I am wondering if it is possible...
    3. How to call a coldfusion function defined in other coldfusion file??
      inside a.cfm, it has code fragment: <cfloop> <cfinclude template="b.cfm"> </cfloop> inside b.cfm, it has code fragment: ...
    4. coldfusion cms
      Hi: If i want to use a coldfusion based cms (content management system) which one is the best choice? Thanks Benign
    5. Com+ and Coldfusion 7.1
      I have some DLL's (they sit server side) that were developed in VB 6 and are registered as Com objects with windows XP. How can i access those and...
  3. #2

    Default Re: coldfusion and c++

    Look at using a custom cfx tag.

    [url]http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=0 0001101.htm[/url]

    hth
    BSterner Guest

  4. #3

    Default Re: coldfusion and c++

    I have gone through that document many times and am still confused.

    Let's say I have a variable called bid in my c++ code. When I pass it to my
    cf page, how would I recognize that variable that is being passed? An example
    of the code would be extremely helpful. Or could you explane how custom tags
    work?

    kaebee Guest

  5. #4

    Default Re: coldfusion and c++

    Did you read this article on using the Coldfusion tag wizard? Are you trying
    to develop this on a windows or *nix machine? If it's the former, I'm afraid I
    won't be much help as I do not have/use Microsoft Visual C++.

    BSterner Guest

  6. #5

    Default Re: coldfusion and c++

    Originally posted by: BSterner
    Did you read this article on using the Coldfusion tag wizard?


    [url]http://www.intermedia.net/support/ColdFusion/CF5docs/Developing_ColdFusion_Appli[/url]
    cations/CFXTags7.html

    Are you trying to develop this on a windows or *nix machine? If it's the
    former, I'm afraid I won't be much help as I do not have/use Microsoft Visual
    C++.

    Thanks for your response. I am developing this on a unix machine.

    I will read that article about the Tag Wizard. I am a total newbie at this
    and I haven't been able to find any documentation about what these tags
    actually do. So, I create this custom tag. Then what? Do I need to put
    something in my c++ code as well as my .cfm page? I just need the data that is
    passed from my c++ code to display in my .cfm page. From there, I am done with
    the c++ code and will do some db processing with the data. How would a custom
    tag look in my .cfm page?

    Thanks again for the response. I am pulling my hair out over here. I guess I
    just don't know where to begin.



    kaebee Guest

  7. #6

    Default Re: coldfusion and c++

    These tags extend Coldfusion by allowing you to leverage code written in C++ or
    Java. Sometimes, it makes more sense for an applicaion to do the "heavy
    lifting" in C++ or Java or you may have existing code you wish to leverage.
    The tags allow you to pass data back and forth between CF and your application.

    Steps
    1) Create the C++ shared object file. I would recommend using the template
    'request.cc' found in: [cf_install_root]cfx\examples\directorylist\unix

    How you call your current application (Be it an exe or dll) is for you to
    determine. You may need to recompile it or link it to the so library.

    Use the Makefile in the appropriate *nix sub-directory under the
    aforementioned unix folder. You may need to modify the "Include" path in your
    makefile based on where you create your .so.

    2) Register the so file via the Coldfusion Administrator by using the "CFX
    Tags" link. You will prefix the name with "cfx_" and then whatever you want
    (We'll call it "cfx_MyApp" for example).

    3) In your coldfusion page you call the tag as follows:

    <cfx_MyApp arg1="Some value" arg2="Some other value">

    Where "arg1" and "arg2" are the tag attributes you pass to your c++ program,
    if needed. You use the "GetRequiredAttribute" routine in your C++ app to
    access these arguments.

    Take a look at this page for specifics on how expose the Classes/functions in
    the CFX API.


    [url]http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/[/url]
    wwhelp.htm?context=ColdFusion_Documentation&file=0 0000784.htm#1098874

    Specifically, I would look at the "CCFXRequest class" & the "CCFXStringSet
    class" links.

    hth

    BSterner 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