LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-25-2005, 03:42 AM   #1
luigi
LQ Newbie
 
Registered: Aug 2001
Location: Italy
Distribution: kubuntu
Posts: 27

Rep: Reputation: 15
Question Flash GUI interface to a C++ software?


Hi all,
I am just wondering if it is possible...
This is what i mean: let's say that I have a piece of C/C++ software doing some beautiful (intensive) computations :-) and I want to build a GUI for it. Flash could be cool due to large availability of special effects around on the WEB.
I would need a data exchanging mechanism between the C++ routine and the GUI (in both directions) and some kind of notification messages.
Maybe I can host the flash player plugin into a wxHTML or similar window?


Any ideas? It's too crazy ;-) ?
Luigi
 
Old 01-25-2005, 05:26 AM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
It all depends on the flash, is it capable of calling other programs?, does it even has a basic stdin stdout capabilities, etc..?

When I was building GUI interfaces for the web what I tended to do was write a CGI C/C++ program that apache would call, and it would write HTML/Javascript backout to the user. It was a simple interface program, and would then itself call other C/C++ programs, with the options the users had select to do any real work.

I suppose you could do the same with flash if it is capable of calling other programs.
 
Old 01-25-2005, 06:05 AM   #3
luigi
LQ Newbie
 
Registered: Aug 2001
Location: Italy
Distribution: kubuntu
Posts: 27

Original Poster
Rep: Reputation: 15
Hi leonscape,
some flash expert is definitively needed ;-)
I should add to my wish list what I prefere not to have other programs running to make the comunication possible, for example: flash --> server with php --> C++ would *not* be nice for me.

Luigi
 
Old 01-25-2005, 07:46 AM   #4
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
i think this is what tcl/tk is designed for.
You do the GUI in tcl/tk and link in your C code
to do the copmutation stuff.
 
Old 01-25-2005, 08:05 AM   #5
pperon
Member
 
Registered: Jan 2002
Location: Cleveland
Distribution: Gentoo and umm... Gentoo
Posts: 64

Rep: Reputation: 15
You _can_ interface Flash with Visual C++ using the fscommand (via a VB Event) but given that this is a linux programming forum I doubt that's an option for you.

To learn more about the fscommand click here .

Good luck!
 
Old 01-26-2005, 06:16 AM   #6
luigi
LQ Newbie
 
Registered: Aug 2001
Location: Italy
Distribution: kubuntu
Posts: 27

Original Poster
Rep: Reputation: 15
Hi pperon,
thank you for the hint, but unfortunately this method does not suite my needs.... A shared memory segment or a socket would be also nice.

It seems difficult/impossible....... Any idea?

Luigi
 
Old 01-26-2005, 08:20 AM   #7
pperon
Member
 
Registered: Jan 2002
Location: Cleveland
Distribution: Gentoo and umm... Gentoo
Posts: 64

Rep: Reputation: 15
Using sockets with C++ and Flash may be impossible, yes. However, (and I've never used XML sockets with Flash) you can do it with Java as seen on this site...

XML Sockets using Java and Flash

perhaps a comparable server could be written in C++...?

I'm not sure.
 
Old 01-26-2005, 08:43 AM   #8
luigi
LQ Newbie
 
Registered: Aug 2001
Location: Italy
Distribution: kubuntu
Posts: 27

Original Poster
Rep: Reputation: 15
Hi pperon,
it seems to me a good starting point! I believe that every socket operation that can be performed in Java has a counterpart in C, so maybe I can try....

Thank you again!
Luigi
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for admin GUI interface Ick Linux - Software 3 08-19-2004 08:57 PM
KDE GUI Interface redsky Debian 2 05-26-2004 05:17 PM
SU under a gui interface??? TuxNewb Linux - Newbie 4 12-07-2003 06:19 PM
Macromedia Flash Web Template: Openstep Interface Quasaur Programming 0 12-06-2003 03:14 PM
NIS GUI Interface package Linux - Networking 1 05-27-2003 01:11 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration