static string MakeGuid36()
{
//make a new guid
Guid g = Guid.NewGuid();
//convert the guid to a base-16 string
string strGuid = g.ToString().Replace("-", "");
//convert the base-16 string to a base-36 string
??
//return the result
return strGuid;
}
/***************************************************************************
*
return a base 36 character. v must be from 0 to 35.
****************************************************************************
/
static char base36(unsigned int v)
{
static char basechars[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
return basechars[v % 36];
}
You can see the whole file here:
http://www.koders.com/c/fidAE1343A83D838FCD04E5C19DB63750EFA1F47D78.aspx?s=base36
"vector" <isb...@yahoo.com> wrote in message
news:7961e1f9.04100...@posting.google.com...