C++ Declare managed type in native code
===

I need to know how do i declare a managed type inside native code?

Like:
I have a ref class Editor in Editor.h

In native code(main.cpp):
Editor^ MainEditor;

But it gives me the following:

    MainEditor' : global or static variable may not have managed type 'Cube3D::Editor ^'

I've tried to make it inside a container but i still need to declare it.