MC++ won't allow you to declare a managed pointer as a member of an unmanaged class, but requires you to use gcroot<> instead.
However declaring a managed pointer as a local variable in a function or as an argument to a function in an unmanaged class does NOT produce a compilation error, and there's no word in the docs about using gcroot here. I'm assuming you are still supposed to use gcroot<> in all managed pointer declarations - can anyone confirm if that is correct? Simon --------------------------------------------------------------- Simon Robinson http://www.SimonRobinson.com --------------------------------------------------------------- You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.