LPBYTE CString_To_LPBYTE(CString str) 
  { 
  LPBYTE lpb=new BYTE[str.GetLength()+1]; 
  <str.GetLength(); i++)lpb[i]=str[i];> 
  for(int i=0; ibr>   lpb[str.GetLength()]=0; 
  return lpb; 
  }