Another array problem

jasonjason United Kingdom
I'd like to create an array of pointers to the DataTable class.

[code]DataTable * myArray[];[/code]
brings up an error stating that __gc or __nogc must be used.

When I use __nogc I get a different error:

error C3150: 'myArray' : '__nogc' can only be applied to a class, struct, interface, array or pointer

Any ideas?

[red]Regards, Jason[/red]

Comments

  • : I'd like to create an array of pointers to the DataTable class.
    :
    : [code]DataTable * myArray[];[/code]
    : brings up an error stating that __gc or __nogc must be used.
    :
    : When I use __nogc I get a different error:
    :
    : error C3150: 'myArray' : '__nogc' can only be applied to a class, struct, interface, array or pointer
    :
    : Any ideas?
    :
    : [red]Regards, Jason[/red]
    :

    Hmm.. Shouldn't that [] come after the type like this: DataTable[] myArray; I'm not sure where the * goes though.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion