// Create project instance and access task System::String dataDir = RunExamples::GetDataDir(System::Reflection::MethodBase::GetCurrentMethod(ASPOSE_CURRENT_FUNCTION)->get_DeclaringType().get_FullName()); System::SharedPtr project1 = System::MakeObject(dataDir + u"External.mpp"); System::SharedPtr externalTask = project1->get_RootTask()->get_Children()->GetByUid(1); // Show ID of the task in the external project System::Console::WriteLine(System::Convert::ToString(externalTask->Get(Tsk::Id()))); // Show ID of the task in the original project System::Console::WriteLine(System::Convert::ToString(externalTask->Get(Tsk::ExternalId())));