S
SmallGhost
Unregistered / Unconfirmed
GUEST, unregistred user!
谁能帮我把下列的C代码转成Delphi语言!
DWORD S2N(LPCTSTR szString_arg)
{
DWORD dwNumber;
int i;
for (dwNumber = i = 0; szString_arg; i++)
{
dwNumber = (dwNumber+(i+1)*szString_arg)%0x8000000bu*0xffffffefu;
}
return dwNumber^0x12345678;
}
DWORD S2N(LPCTSTR szString_arg)
{
DWORD dwNumber;
int i;
for (dwNumber = i = 0; szString_arg; i++)
{
dwNumber = (dwNumber+(i+1)*szString_arg)%0x8000000bu*0xffffffefu;
}
return dwNumber^0x12345678;
}