![]() |
| | #1 |
| Registered User Join Date: Jul 2008
Posts: 2
| Anyway i was wondering if its possible to use HTML code for making the GUI of a c++ program or any other language? What i was thinking of was something that linked a HTML site to the program so for example if someone pressed a link the browser wouldnt load a new page but input a value to the program instead. It musnt nececarily be this way. I would be grateful for any respenses, and very grateful if they were positiv ones :P |
| mogallin is offline | |
| | #2 |
| Registered User Join Date: Jul 2008
Posts: 54
| You could use just use Java, encoded into your page. Then essentially you would be running a program instead of just a webpage... Unless I'm not getting what your saying at all |
| parad0x13 is offline | |
| | #3 |
| Guest Join Date: Aug 2001
Posts: 4,923
| >> Anyway i was wondering if its possible to use HTML code for making the GUI of a c++ program or any other language? Yes, any language can be used as long as a socket API is available (just about every language has one). |
| Sebastiani is offline | |
| | #4 |
| Ethernal Noob Join Date: Nov 2001
Posts: 1,888
| java or c#, jsp/jsf, asp etc. But you can probably create dynamic web-pages with a good knowledge of HTML with C++ like Sebastiani said, with sockets, just tossing back and forth information between the page and so forth, I don't know if you'll find tools that make it work as smoothly as other languages though. Also you can look into php, since that's what it's made for.
__________________ Here to Deceive, Inveigle, Obfuscate Since 1945 |
| indigo0086 is offline | |
| | #5 |
| (?<!re)tired Join Date: May 2006 Location: Portugal
Posts: 5,220
| What exactly do you want to do mogallin? The general answer is yes, as you've seen already from the answers. But if you provide a more detailed explanation of your plans, you will probably get a more to the point answer including the available technologies you need to study.
__________________ Originally Posted by brewbuck: Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster. |
| Mario F. is offline | |
| | #6 |
| Super Moderator Join Date: Aug 2001
Posts: 7,470
| It's very easy to create dynamic web pages via ASP.NET and AJAX.
__________________ If you aim at everything you will hit something but you won't know what it is. |
| Bubba is offline | |
| | #7 |
| Registered User Join Date: Jul 2008
Posts: 2
| Details what i was thinking was if i instead of learning java with GUI or GUI for c++ ( i know a tiny bit c++ and would like to continue larning it) it maybe would be possible to use HTML code for the GUI. So maybe a HTML link could do a input action istead of linking to another page; <a href="programname.input.'2'"> input 2 </a> or maybe something like that. This would be good if i had a program wanting the user to chose between 3 alternatives many times. Mostly to make non-programming-interested friends try the app, since they think command line interfaces are quite boring. |
| mogallin is offline | |
| | #8 |
| (?<!re)tired Join Date: May 2006 Location: Portugal
Posts: 5,220
| I don't suggest you go that route with that type of HTML-C++ integration. It is certainly possible. But hard to develop although there are already some HTML parsing and rendering libraries for C++ integrated in C++ GUI libraries like wxWidgets or Qt. But... if you end up using those libraries, might as well use what they were designed for; and that is C++ GUI development. If you don't aim at learning C++ or Java, I'd suggest you gave Adobe AIR a shot. It provides programmers with yet another alternative for GUI development and it's a quiet interesting alternative for a few reasons, one of which is its tight web integration. You can run AIR applications standalone or as part of a website.
__________________ Originally Posted by brewbuck: Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster. Last edited by Mario F.; 07-26-2008 at 12:59 PM. |
| Mario F. is offline | |
| | #9 |
| FOSS Enthusiast Join Date: Jun 2008 Location: Germany
Posts: 64
| the easiest method is writing a webserver for that specific html page, which shouldn't be a big deal if you're familiar with html. The difficult part is, that you'll need a good understanding of the C (or C++) programming language and berkeley sockets. Imho the learning effort is the same like creating a simple GUI using GTK+ (never used Qt or the Win API for GUIs so I can't compare them). |
| mkruk is offline | |
![]() |
| Tags |
| c++, gui, html |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Please Help - C code creates dynamic HTML | Christie2008 | C Programming | 19 | 04-02-2008 07:36 PM |
| Convert Windows GUI to Linux GUI | BobS0327 | Linux Programming | 21 | 11-27-2005 04:39 AM |
| .NET And GUI Programming :: C++ | kuphryn | C++ Programming | 4 | 01-27-2002 04:22 PM |
| GUI Programming :: C++ Exclusive | kuphryn | C++ Programming | 5 | 01-25-2002 03:22 PM |
| C++: Reference Book, GUI, Networking & Beyond | kuphryn | C++ Programming | 4 | 11-10-2001 08:03 PM |