W
Wild Wind
Hello,
I posted this a few days back, but got no response, so I
am reposting it.
I have an event in my managed class which I declare as:
__event void MyEvent(System::Byte (*fir) __gc[]);
However, I find that when I build the class, I get very
strange errors like
error C2143: syntax error : missing ')' before ';'
I think the problem has to do with my declaration, because
when I redeclare the event as
__event void MyEvent(System::Byte fir __gc[]);
the error goes away. However, I don't feel satisfied with
this because I don't see a problem with the declaration.
In addition, this event is going to be consumed by a VB.NET
application and since the array it is passing as a parameter
is a managed array, I have to pass a pointer to the array
instead of the array itself as I do in the 'corrected'
version.
I would appreciate it if anyone could shed some more
light on the correct way to raise events that have arrays
as parameters. Should I just use System::Array* instead?
I posted this a few days back, but got no response, so I
am reposting it.
I have an event in my managed class which I declare as:
__event void MyEvent(System::Byte (*fir) __gc[]);
However, I find that when I build the class, I get very
strange errors like
error C2143: syntax error : missing ')' before ';'
I think the problem has to do with my declaration, because
when I redeclare the event as
__event void MyEvent(System::Byte fir __gc[]);
the error goes away. However, I don't feel satisfied with
this because I don't see a problem with the declaration.
In addition, this event is going to be consumed by a VB.NET
application and since the array it is passing as a parameter
is a managed array, I have to pass a pointer to the array
instead of the array itself as I do in the 'corrected'
version.
I would appreciate it if anyone could shed some more
light on the correct way to raise events that have arrays
as parameters. Should I just use System::Array* instead?