Flex -- C++ connection? -
How do I add a Flex application (Internet site) and C ++ togator?
What do I mean (User Story): Frank goes to www.myflexsite.de 2 text boxes and 1 button (label = two numbers added). He inserts 2 in the first text box and 5 in the ohter. Now he clicks on the add button.
Backend: We have an add.cpp file where an add method is defined:
int add (int a, int b) ...
After clicking on the "Add two numbers" button, the add-manager is called in C ++ file and the result will be returned. A warning window is displayed with the result.
This is what I want to accomplish, but I do not know how I can make a bridge between these two languages. How can they communicate?
The easiest to write a small console is to apply in C ++ and then to the CPI Open it via Apache or any other web server. There are performance problems with it but this is a good start, and then you can proceed just to request Flex from HTTP and let your program parse - for example, You can send the XML back and forth.
Comments
Post a Comment