「PWSTR」を「System::String^」に変換する方法を知りたい
My code snippet follows here...
array<System::String^>^ nsRecords;
try
{
nsRecordCount = dns.query(ipAddressString);
nsRecords = gcnew array<System::String^>(nsRecordCount);
for(int nsRecord = 0; nsRecord < nsRecordCount; nsRecord++)
{
DNS_PTR_DATA record = dns.getNth(nsRecord);
// below line of code causing error C2440: '=' :
//cannot convert from 'PWSTR' to 'System::String ^'
nsRecords[nsRecord] = record.pNameHost;
}
}
私はあなたの助けに感謝します!
ありがとう、ラマニ