What i initially did was look in the Explorer on the right, right clicked the .exe and add new>Unit
Then i added in all the code, the new class and a method without including the first header and when i do come to do that, it gives me the following errors:
Multiple declaration for...
i should also state that, form 2 will not be visible in the final application, it's just a place to store certain parts of code.
Also, when I do what you said for the second form, multiple declaration errors appear for the methods i've created.
Ah thank you, tis very simple when you look around. Unfortunately i'm still haven't trouble referring to objects on form 1 from form 2.
I'm creating an object in form 2 and it's parent will be on form 1, i'm sure that used to be:
object->parent = frmname->object;
but this throws up errors...
Hi, i'm relatively new to C++, though i've been working with one form each time I use C++ Builder, i'd now like to branch out a bit more.
For example I wish to implement a second unit to contain methods and functions that would be best left out of the main form.
The only thing is i'm currently...
Correction.
I just need to know how to create multiple shapes rather than one at a time, needs to be at least 2 at a time.
I believe once i know how to do this, I can use a component on the settings dialogue to change this.
Sorry for the mass post! I cant seem to find an edit post link if...
Hey,
I'm creating a very simple program that will allow you to manipulate shapes; each shape has the same mousedown properties as every other shape.
What i want to do next is to use a settings dialogue box to set the number of shapes created when the form is run, bearing in mind that each...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.