Help with an easy C++ function
Posted on 2006-11-26
I've just opened Borland C++ Builder v6.0 for the first time and I'm stuck :(
I used to code in Turbo Pascal and Delphi. The last couple of years I've used VB for applications a bit, but my experience is still limited.
I've tried C++ for Dummies, but it is frustrating to be stuck almost before I've started.
Create a new unit, write a function in it and call it from the press of a button (in Unit1).
I'm still just playing around, so the function should be VERY SIMPLE, just so I can learn the framework around a function. The only requirement is that it returns a boolean value of TRUE if the function executed with success. (e.g. Show a message on the screen).
If you know how to do this, please supply my with an example of Unit1.cpp, Unit1.h, Unit2.cpp and Unit2.h