473,396 Members | 2,093 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Is there anything like JavaBeans in C++?

Is there some standard (ish) way to build reusable graphic components
in the C++ environment?

-Ramon

Nov 29 '07 #1
9 4538
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.
Nov 29 '07 #2
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/>
Nov 29 '07 #3
Hi,
"Ramon F Herrera" <ra***@conexus.netwrote in message
news:03**********************************@d4g2000p rg.googlegroups.com...
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
Nov 29 '07 #4
On Nov 29, 1:32 pm, Daniel Pitts
<newsgroup.spamfil...@virtualinfinity.netwrote:
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.

Nov 30 '07 #5
On Nov 29, 1:32 pm, Daniel Pitts
<newsgroup.spamfil...@virtualinfinity.netwrote:
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

Nov 30 '07 #6
On Nov 29, 8:24 pm, Ramon F Herrera <ra...@conexus.netwrote:
On Nov 29, 1:32 pm, Daniel Pitts

<newsgroup.spamfil...@virtualinfinity.netwrote:
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?

Nov 30 '07 #7
Look how it's implemented in QT http://trolltech.com/products/qt
On Nov 29, 1:32 pm, Daniel Pitts

<newsgroup.spamfil...@virtualinfinity.netwrote:
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
Nov 30 '07 #8
On Nov 30, 3:37 am, Tim H <thoc...@gmail.comwrote:
On Nov 29, 8:24 pm, Ramon F Herrera <ra...@conexus.netwrote:
On Nov 29, 1:32 pm, Daniel Pitts
<newsgroup.spamfil...@virtualinfinity.netwrote:
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

Nov 30 '07 #9
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
Dec 1 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Patrick Vanhoof | last post by:
Hi, I want to learn about what JavaBeans are and how to create/use them. I could not find good information yet, so any help is much appreciated. I am using Eclipse to do some Java testing, does...
0
by: Hal Vaughan | last post by:
I am working on an install program, for another program that will need a list of printers on a system. Originally I found the printers by doing this: public PrintNames() { String tName = "";...
73
by: RobertMaas | last post by:
After many years of using LISP, I'm taking a class in Java and finding the two roughly comparable in some ways and very different in other ways. Each has a decent size library of useful utilities...
9
by: Philip TAYLOR | last post by:
Configuring a new instance of IIS, I noticed that it allows an HTML-formatted document trailer to be appended to every document served. Unfortunately, on checking its behaviour, I find that it...
34
by: Justin Timberlake | last post by:
I was thinking about all those /Indian Outsourcing/ companies getting those .Net shops set up. 0. Nobody uses .NET in the real world, it's all java. 1. MSFT is about to collapse as witnessed by...
20
by: Narf the Mouse | last post by:
....Without using NULL? There must be a way; people keep talking about storing pointers to objects in different locations in the program. Thanks.
28
by: hijkl | last post by:
hey guys anything wrong with this code?? if it is then what? int *array(int n){ return new int(n); } int main(){ int *p = array(10); for( int i = 0; i < 10; i++ ) {
1
by: shivapadma | last post by:
i know javabean is nothing but a class written in java language the business logic is written in javabean but, i want know the advantages and objectives of using javabeans question :...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectóplanning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.