LPCTSTR data_Get=_T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Windows Media Player");
long  ret1=(::RegOpenKeyEx(HKEY_LOCAL_MACHINE,data_Get,0,KEY_ALL_ACCESS,&hkey));   
  if(ret1!=ERROR_SUCCESS)   
  {   
  MessageBox(_T("无法打开!"));   
  return false;   
  }
LPBYTE DisplayName_Get=new BYTE[80];
  DWORD type1=REG_SZ;
  DWORD cbData1=80;
  long ret2=::RegQueryValueEx(hkey,_T("DisplayName"),NULL,&type1,DisplayName_Get,&cbData1);
  if(ret2==ERROR_SUCCESS)
  {
  CString str1=CString(DisplayName_Get);
  int nIndex=m_ListProgram.InsertItem(m_ListProgram.GetItemCount(),str1);
  }
在VC6运行正确,但在2005里List显示是乱码