Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Is there anything like JavaBeans in C++?

Reply
Thread Tools

Is there anything like JavaBeans in C++?

 
 
Ramon F Herrera
Guest
Posts: n/a
 
      11-29-2007
Is there some standard (ish) way to build reusable graphic components
in the C++ environment?

-Ramon

 
Reply With Quote
 
 
 
 
Ian Collins
Guest
Posts: n/a
 
      11-29-2007
Ramon F Herrera wrote:
> Is there some standard (ish) way to build reusable graphic components
> in the C++ environment?
>

Check the archives of this group (c.l.c++), this question is asked
frequently.

--
Ian Collins.
 
Reply With Quote
 
 
 
 
Daniel Pitts
Guest
Posts: n/a
 
      11-29-2007
Ian Collins wrote:
> Ramon F Herrera wrote:
>> Is there some standard (ish) way to build reusable graphic components
>> in the C++ environment?
>>

> Check the archives of this group (c.l.c++), this question is asked
> frequently.
>

As far as I know, standard C++ doesn't have the necessary reflective API
to handle the introspection aspect of JavaBeans.

What features of JavaBeans are you interested in? Events, Properties,
automatic discovery? There may be C++ centric ways to handle all of these.

--
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>
 
Reply With Quote
 
Ron AF Greve
Guest
Posts: n/a
 
      11-29-2007
Hi,


"Ramon F Herrera" <> wrote in message
news:035f93ff-20ed-4886-9482-...
> Is there some standard (ish) way to build reusable graphic components
> in the C++ environment?
>
> -Ramon
>

Wel not really a standard way. But in MS-Windows there is of course the
Component Object Model which is similar to java beans. COM is easy to progam
in C++ (and easier to use in Visual Basic )


Regards, Ron AF Greve

http://www.InformationSuperHighway.eu


 
Reply With Quote
 
Ramon F Herrera
Guest
Posts: n/a
 
      11-30-2007
On Nov 29, 1:32 pm, Daniel Pitts
<newsgroup.spamfil...@virtualinfinity.net> wrote:
> Ian Collins wrote:
> > Ramon F Herrera wrote:
> >> Is there some standard (ish) way to build reusable graphic components
> >> in the C++ environment?

>
> > Check the archives of this group (c.l.c++), this question is asked
> > frequently.

>
> As far as I know, standard C++ doesn't have the necessary reflective API
> to handle the introspection aspect of JavaBeans.


Thanks for making me look. "Looking up", that is. I had been
wondering about this "reflection" and "introspection", and wondered
whether it was probably a feature of a language called "665++" (for
its inability to see its own reflection)

Now seriously. There are some instances of reflection.

- GUI builders: Matisse does not use reflection, it's just a clumsy
hack. This one, OTOH provides a nice example of how useful and
powerful reflection techniques can be:

http://www.instantiations.com/windowbuilder/ (*)

- Another example of reflection is some types of viruses

- A plain vanilla linker-loader is not an example of reflective
programming.


-Ramon

(*) Since I have been on a quest for having a single IDE for Java and C
++, I wrote to the company above, asking them if they had something
like WindowBuilder (it sure beats the pants of MSVC++'s GUI builder)
for C++. Their response was: "C++? Are people still using that!?". He
added a smiley, though.

 
Reply With Quote
 
Ramon F Herrera
Guest
Posts: n/a
 
      11-30-2007
On Nov 29, 1:32 pm, Daniel Pitts
<newsgroup.spamfil...@virtualinfinity.net> wrote:
> Ian Collins wrote:
> > Ramon F Herrera wrote:
> >> Is there some standard (ish) way to build reusable graphic components
> >> in the C++ environment?

>
> > Check the archives of this group (c.l.c++), this question is asked
> > frequently.

>
> As far as I know, standard C++ doesn't have the necessary reflective API
> to handle the introspection aspect of JavaBeans.
>
> What features of JavaBeans are you interested in? Events, Properties,
> automatic discovery? There may be C++ centric ways to handle all of these.
>


My requirements are quite modest. My application has a palette (much
like Photoshop, except with fewer items) but the elements you click on
is not just an static icon, they have some GUI behavior. I would like
to be able to hire different programmers to implement such widgets, in
a standard -or at least consistent- way, like in JavaBeans.

-Ramon

 
Reply With Quote
 
Tim H
Guest
Posts: n/a
 
      11-30-2007
On Nov 29, 8:24 pm, Ramon F Herrera <ra...@conexus.net> wrote:
> On Nov 29, 1:32 pm, Daniel Pitts
>
> <newsgroup.spamfil...@virtualinfinity.net> wrote:
> > Ian Collins wrote:
> > > Ramon F Herrera wrote:
> > >> Is there some standard (ish) way to build reusable graphic components
> > >> in the C++ environment?

>
> > > Check the archives of this group (c.l.c++), this question is asked
> > > frequently.

>
> > As far as I know, standard C++ doesn't have the necessary reflective API
> > to handle the introspection aspect of JavaBeans.

>
> > What features of JavaBeans are you interested in? Events, Properties,
> > automatic discovery? There may be C++ centric ways to handle all of these.

>
> My requirements are quite modest. My application has a palette (much
> like Photoshop, except with fewer items) but the elements you click on
> is not just an static icon, they have some GUI behavior. I would like
> to be able to hire different programmers to implement such widgets, in
> a standard -or at least consistent- way, like in JavaBeans.


Binary consistent, or just API consistent? Isn't that what APIs are
for?

 
Reply With Quote
 
Andrey Ryabov
Guest
Posts: n/a
 
      11-30-2007
Look how it's implemented in QT http://trolltech.com/products/qt

> On Nov 29, 1:32 pm, Daniel Pitts
>
> <newsgroup.spamfil...@virtualinfinity.net> wrote:
> > Ian Collins wrote:
> > > Ramon F Herrera wrote:
> > >> Is there some standard (ish) way to build reusable graphic components
> > >> in the C++ environment?

>
> > > Check the archives of this group (c.l.c++), this question is asked
> > > frequently.

>
> > As far as I know, standard C++ doesn't have the necessary reflective API
> > to handle the introspection aspect of JavaBeans.

>
> > What features of JavaBeans are you interested in? Events, Properties,
> > automatic discovery? There may be C++ centric ways to handle all of these.

>
> My requirements are quite modest. My application has a palette (much
> like Photoshop, except with fewer items) but the elements you click on
> is not just an static icon, they have some GUI behavior. I would like
> to be able to hire different programmers to implement such widgets, in
> a standard -or at least consistent- way, like in JavaBeans.
>
> -Ramon


 
Reply With Quote
 
Ramon F Herrera
Guest
Posts: n/a
 
      11-30-2007
On Nov 30, 3:37 am, Tim H <thoc...@gmail.com> wrote:
> On Nov 29, 8:24 pm, Ramon F Herrera <ra...@conexus.net> wrote:
>
>
>
> > On Nov 29, 1:32 pm, Daniel Pitts

>
> > <newsgroup.spamfil...@virtualinfinity.net> wrote:
> > > Ian Collins wrote:
> > > > Ramon F Herrera wrote:
> > > >> Is there some standard (ish) way to build reusable graphic components
> > > >> in the C++ environment?

>
> > > > Check the archives of this group (c.l.c++), this question is asked
> > > > frequently.

>
> > > As far as I know, standard C++ doesn't have the necessary reflective API
> > > to handle the introspection aspect of JavaBeans.

>
> > > What features of JavaBeans are you interested in? Events, Properties,
> > > automatic discovery? There may be C++ centric ways to handle all of these.

>
> > My requirements are quite modest. My application has a palette (much
> > like Photoshop, except with fewer items) but the elements you click on
> > is not just an static icon, they have some GUI behavior. I would like
> > to be able to hire different programmers to implement such widgets, in
> > a standard -or at least consistent- way, like in JavaBeans.

>


> Binary consistent, or just API consistent?


That's part of my question.

> Isn't that what APIs are for?


Which APIs are you talking about, my own? Some standard?
See my answer to your previous question above.

I am an experienced C (and recently, Java) programmer. I have read the
"Thinking in C++" book, so I am familiar with the syntax. What I am
really trying to figure out is the resources and facilities out there
(libraries, GUI toolkits, source code available, common usage, best
practices, etc.). In those areas are I am pretty much a clueless
newbie.

Thanks,

-Ramon

 
Reply With Quote
 
Erik Wikström
Guest
Posts: n/a
 
      12-01-2007
On 2007-11-29 08:10, Ramon F Herrera wrote:
> Is there some standard (ish) way to build reusable graphic components
> in the C++ environment?


Yes, there are several, it all depends one which GUI framework you are
using and what you want to be able to do. If you can live with
recompiling when you add a new component than any framework will do,
just define a couple of interfaces that you require that the graphical
components adhere to. If you want to allow dynamic loading (like
plugins) then it becomes more complicated, and platform specific but I
think you should still be able to do it on most platforms.

--
Erik Wikström
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there anything like JavaBeans in C++? Ramon F Herrera Java 8 11-30-2007 07:15 PM
is there anything like GSpot for mp3's mattcar Computer Support 0 11-02-2006 09:34 PM
Is there anything like ASP.NET for Python web apps ? rytoy@yahoo.com Python 1 02-17-2006 10:07 AM
Is there anything like Oracle ADF in other Java IDE tools ? krislioe@gmail.com Java 10 06-30-2005 03:27 PM
is there anything like static constructors or destructors in C++ ? Amit C++ 3 05-06-2005 09:13 AM



Advertisments
 



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