Page 1 of 1
VirtualBox programming.
Posted: 2. Feb 2009, 11:04
by vazzdoin
Hello folks.
M working on Virtual bOx n i need to learn
VBox programming (c++) for that . can anyone tell me any helpfull site or link to learn VBox programming which should contain enough stuff to be skilled in VBox programming. Kindly post that link. Please reply if somebody has worked or working allready on VBox programming . I need help .
Thanks.

Posted: 2. Feb 2009, 14:37
by TerryE
You need to learn proper C++ and if you aren't familiar with this, then expect a learning curve !! I've been programming since the age of 14 (over 40 years ago). In my time I've learnt dozens of languages: classic 3gen ones such as Fortran, Cobol, Pascal, C, Basic; many assemblers, and more modern languages such as prolog, smalltalk/squeak, VB, Java, and various scripting languages. Most of the stuff that I do nowadays is in Perl and PHP ( and SQL dialects of course). Of the lot, I think that C++ was the hardest to get to grips with. It basically layers a whole object abstraction model on top of C and that is a just a real bastardisation. The class libraries and templates are complex to get to grips with. As a result most "C++ programmers" use a C-like subset and pay lip-service to OO.
So step one is to learn C++ and your path to doing this well depends on the language knowledge that you're building on.
Step two is to get to grips with the VB OSE source. This one is simple: download the latest version and start browsing. You've got about 300K lines so this isn't so big as FLOSS projects go. Moreover the code shows the benefits of having a tight and skilled development team: the coding standards are consistent and generally of a high calibre. No publicly available development document of course, but again that's typical for FLOSS projects.
Thanks
Posted: 3. Feb 2009, 07:16
by vazzdoin
Thanks Terry...
M into c++ n i know enough of c++ too start doing coding in VBox. So i was requiring
some helpfull stuff (interfaces and members of VBOX). I shall b thankfull to u if u can get me some link or url where i can find some examples or like stuff to start doing something different on VBOX as i am already studying VBox code from its base prograam which i get from VirtualBox site. But now i wanna make some ammendments and want to embedd some code into that base code to get some desired results from VBox. I shall b thankfull if u can help me in that.
Specifically, M working over OS monitoring over VBOx . so i want knowledge of such interfaces n d members which can really help me in doing OS Health monitoring.
thanks.
Posted: 3. Feb 2009, 12:11
by TerryE
As you see from the code, it contains some doxygen embedded commenting. Not really full documentation, but enough to document the XPCOM APIs. If you download the SDK, you will get them in PDF and CHM format as well. That and the code is all there is. Sorry.
I am not a Sun guy, so I am in the same boat as you. However, I do know my way around the code and its architecture quite well now. One of these days I might have time to do some overview documentation.
thanks.
Posted: 4. Feb 2009, 09:15
by vazzdoin
Thanks TerryE...
i found some VBox related coding from teh VBoxManage rpm. This is quite helpfull. I already had that but never discovered. Now i can do anything with the help of c++ code what i can do on the terminal with the VBoxManage command. u can also try that . Its helpfull , n all d members are given in that code.