Search:

Type: Posts; User: middric

Search: Search took 0.01 seconds.

  1. Replies
    15
    Views
    1,461

    I can't name the shapes with the [ and ]...

    I can't name the shapes with the [ and ] characters. Gives me an invalid component name error.

    I've tried:


    shape myShapes[11];
    myShapes[0] = Shape1;
    myShapes[1] = Shape2;

    but it says...
  2. Replies
    15
    Views
    1,461

    Well i have a set of shapes on my form called...

    Well i have a set of shapes on my form called Shape1 through to Shape11. How do I relate those shapes to positions in the myShapes array?

    so myShapes[1] would refer to Shape1..
  3. Replies
    15
    Views
    1,461

    ok, so I have defined a shape class in my unit1.h...

    ok, so I have defined a shape class in my unit1.h file and put shape myShapes[11]; in my unit1.cpp file.

    How do I relate the shape array to shapes on my form?
  4. Replies
    15
    Views
    1,461

    I have no other files.. I'm confused as to where...

    I have no other files.. I'm confused as to where and how i define and then declare the shape/s.
  5. Replies
    15
    Views
    1,461

    Ok, ...

    Ok,


    //---------------------------------------------------------------------------

    #ifndef Unit1H
    #define Unit1H...
  6. Replies
    15
    Views
    1,461

    Ok, just trying it on a brand new form: ...

    Ok, just trying it on a brand new form:


    #include <vcl.h>
    #pragma hdrstop

    #include "Unit1.h"
    //---------------------------------------------------------------------------
    #pragma...
  7. Replies
    15
    Views
    1,461

    Thanks for the help, but how do I go about...

    Thanks for the help, but how do I go about creating an array of shapes?

    shape myShapes[11]; brings up an undefined symbol 'shape' error.
  8. Replies
    15
    Views
    1,461

    Adding to a variable name

    Hey,

    Is it possible to add a character to the end of a variable name?

    I have a set of shapes on my form. The shapes are named Shape1 through to Shape11. The object is to get the shapes moving...
Results 1 to 8 of 8