我有
TCHAR szPIDKEY[255];//for product id
DWORD dwLen = sizeof(szPIDKEY)/sizeof(szPIDKEY[0]); //calculating the size of the key
UINT res = MsiGetProperty(hInstall, _T("PIDKEY"), szPIDKEY, &dwLen);
if(res != ERROR_SUCCESS)
{
//fail the installation
return 1;
}
密钥字符串看起来像 xxxx-xxxx-xxxx-xxxx,我只想取 TCHAR 中的最后四个 xxxx,怎么做?
谢谢