hello
i'm a java programmer and i've wrote in that language a program that take WiiMote events for use in a grafical application (example rotating a rectangle with roll and pitch information with WiiRemoteJ library for java).
Can anyone help me to use a GUI with simple graphics element (like a rectangle) in C++ to translate my java code in a C++ code..
I work with a mac.. and I think I need to install some library for use a GUI like java. For example.. in java when I write JFrame I know that is my class that create a window.. In C++ I don't know (speclially for Mac) how I can have the same results?
First of all, I'm not a java programmer, but I'm familiar with the basic premise of how it works. It's very different from C++. For some applications, such as the one you mentioned, it may be far less complicated. For example, if in java, as you say, you can create a window just by entering JFrame then you may be better off sticking with java. In C++ just generating a window (never mind a complete GUI) is a pretty advanced piece of code. In short, if you're just learning C++, you have a LOT of learning before you ever get to the point where you can create the equivalent of that program.
By the way, that's not to say that java is better than C++, so if you're interested in C++, by all means dive right in. There are some big advantages to writing in C++. Performance is one. Lot's of improvements have been made to java, but a virtual machine will never be able to execute as fast as native code. (Of course that works two ways. The virtual machine makes java more portable between platforms. C++ has to be written for the individual platform.) C++ also allows more control over lower level functions. If you search the internet, I'm sure you can probably find something that offers a detailed comparison and contrast.
A: Get windows for cpp cuz programming mac on c++ is useless unless you want to make some garbage. Windows is much easier to program c++ cuz microsoft provides dozens of libraries for your everyday c++ needs. The only bad thing is that, like anything else Bill Gates sets his eyes upon or even thinks about, it becomes hopelessly complicated, but you will get used to it.
B: C++ is designed to get more into the detailed stuff of the objects you create (yes, because in addition to your standard c++ objects, microsoft has included it's window stuff as objects/classes, just one example about how the Win32 API Library from microsoft is hopelessly complicated). It lets you specify every detail about what you want, but this usually means taking longer.
@metalmop,
"A: Get windows for cpp cuz programming mac on c++ is useless unless you want to make some garbage."
That is a pathetic unfounded statment!
"B: C++ is designed to get more into the detailed stuff of the objects you create (yes, because in addition to your standard c++ objects, microsoft has included it's window stuff as objects/classes, just one example about how the Win32 API Library from microsoft is hopelessly complicated)."