RobotStudio event

a little problem when using VS2008

I want to use VS2008 to control the robot

but the manual only have C# version...

Nowadays, I have faced a problem
when I follow the manual to create a button to start the program execution

the C# code :
private Task[] tasks = null  //declare the tasks
....
tasks = controller.Rapid.GetTasks();
....

but in the VS2008
it can't do the same way

so i change the code:
private static Task^ tasks = nullptr;
...
tasks = aController->Rapid->GetTasks();
....


there is one error when compiling :
errorC2440

can anyone help me to solve this problem? 
thanks a lot!

Comments