function CastStringToInteger(var S: String): Longint;
Casts a string to an integer so that a string can be passed to a DLL using CallDllProc.
This function is deprecated. See the Using DLLs topic.