//Visual .net 2005 Managed C++ syntax //... Moda::DeviceServoMotor ^pServo1=robot->QueryDeviceServoMotor("hinge0/axis0/s"); if(pServo1) { pServo1->GoPositionDeg(45.0); } //...