Thread: Creating object arrays for VC++

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    18
    When I add [5] instead of [], I get the error at this line:
    Code:
    PictureBox* picBlocks[];
    error C3616: '5': a size cannot be specified in a __gc array declaration

    and

    at this line:
    Code:
    picBlocks[i] = new PictureBox();
    error C3262: invalid array indexing: 1 dimension(s) specified for 5-dimensional 'System::Windows::Forms::PictureBox __gc * __gc[,,,,]'
    Last edited by tineras; 05-06-2006 at 09:06 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Creating A Thread W/ PThreads within an Object
    By HalNineThousand in forum Linux Programming
    Replies: 12
    Last Post: 03-28-2008, 02:57 PM
  2. Object destroy itself?
    By cminusminus in forum C++ Programming
    Replies: 28
    Last Post: 03-27-2008, 01:08 AM
  3. Deleting Dynamic array's of an object
    By j0hnb in forum C++ Programming
    Replies: 2
    Last Post: 11-14-2004, 03:25 PM
  4. Replies: 3
    Last Post: 12-03-2001, 01:45 PM
  5. Creating an array of object pointers
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 10-08-2001, 10:01 PM