Code: Select all
ConvertBase(InputBase, OutputBase, nptr)
{
VarSetStrCapacity(&s, 66)
value := DllCall("msvcrt.dll\_wcstoui64", "Str", nptr, "UInt", 0, "UInt", InputBase, "CDECL Int64")
DllCall("msvcrt.dll\_i64tow", "Int64", value, "Str", s, "UInt", OutputBase, "CDECL")
Return s
}