views:

88

answers:

4

I have written an simple applications in C++, and I need to connect with any RIA just for viewing the process ... is there is any good RIA based on C++

+1  A: 

Qt is a good, popular cross-platform GUI library for C++.

I don't know whether it matches your definition of "RIA", though.

Greg Hewgill
A: 

Have you looked at Qt? It comes with Webkit built-in. It is also more portable than other RIA implementations. BTW, most RIA implementations run on language virtual machines that are in turn implemented in C or C++ :-)

Vijay Mathew
RIA is about getting your application to run inside the browser, not about embedding a browser inside your application.
Billy ONeal
+1  A: 

Silverlight is the nearest framework for you. You may find this Stackoverflow question interesting.

Update

After seeing your comment, I'd recommend you using ISAPI or CGI programming in C or C++

Update 2

After figuring that you need to execute C++ code from browsers, The answer is ActiveX. But portability is an issue, rather.

mmonem
but i need it in linux based not windows based
rajesh
@rajesh: Silverlight works just fine on Linux boxes (It's called Moonlight for Linux boxes). And Silverlight does not care what kind of server you are using in any case. But @mmonem: Silverlight cannot be used with C++, so I don't see how it's relevant here.
Billy ONeal
@Billy, At least you can call a C++ dll from it
mmonem
@mmonem: Not as far as I am aware. Silverlight requires that the code it executes be able to run as partially trusted code. C++/CLI, the dialect of C++ for the CLR, cannot generate partially trusted code unless you compile with the /pure option, which disallows **all** native C++ features, such as pointers, and requires you to use managed classes and references instead. (Because with pointers you could break the integrity of the execution environment) Anything resembling C++ is stripped away at that point.
Billy ONeal
@Bill: I agree! but don't you see that if the asker really needs RIA framework then Silverlight would be the nearest? nerear than Java and Flash.
mmonem
@mmonem: Not really. C++/CLI is very similar to a poor imitation of Java. No C++ idioms operate there; you have to treat the language like it is C# -- it has C# semantics, not C++ ones. I suppose it's slightly closer, but close only counts in horse shoes and hand grenades :)
Billy ONeal
+1 for ActiveX, even if it is a SCITE answer :P
Billy ONeal
@Billy: Thanks for the +1 but please let me know what is a SCITE answer and forgive my Englishness :P
mmonem
@mmonem: Nothing to do with "Englishness" :) It's from http://meta.stackoverflow.com/questions/19478/the-many-memes-of-meta/19535#19535 Basically I'm saying that because I posted an answer about ActiveX before you edited that into your answer.
Billy ONeal
@Billy: Oops! I am blushed! but I swear didn't see your post about ActiveX
mmonem
A: 

Generally speaking, this is difficult to do. Clients don't trust running arbitrary C++ code from the internet, because people don't want every website under the sun to be able to install malware, and generally hijack the entire machine, every time they visit a web site. In the general case, therefore, what you want is not really possible.

If you're willing to require the user to answer a ton of prompts, and are okay restricting your application to Internet Explorer on Windows, you could familiarize yourself with COM and write an ActiveX control.

I would strongly advise against doing so, however.

Billy ONeal
i am not doing this for an website its for my web application and its only for internal use
rajesh
@rajesh: Err.. then why are you trying to run the application in browser? Is it really all that difficult for your users to download the binary first?
Billy ONeal