Perhaps it would be sufficient to supply the time value from another
source converted to the units the other code is expecting to see.
Assuming the frequency for the BIOS timer is about 18.2 Hz:
function TimeCounter: LongInt;
begin
Result := LongInt(Round(GetTickCount * 18.2065 / 1000));
end;
This is an example of why it is usually wise to use the AS operator
except in performance critical places. Using the parentheses notation is
an unsafe cast; type checking does not occur at the time of the cast.
This is especially dangerous because you run the risk of corrupting
memory by writin
It actually uses record helpers, but the end result looks very much like
Java primitive types where you have .ToString, .Equals,
.Split etc...
Not with the intent to be contrary, but for the sake of clarity in
discussion, String in Java is not a primitive type; it is a full-fledged
class like
Works fine for me on Windows 7. Here's the Windows version details:
Windows 7 Pro, 64-bit, with Service Pack 1. The "ver" command shows
6.1.7601.
I tested 3 cases:
1. Setting the environment variable using the "set" command in a command
line prompt then immediately running the test program.
2
On 2/17/2012 2:26 PM, Sven Barth wrote:
On 17.02.2012 18:36, Jorge Aldo G. de F. Junior wrote:
so i am inclined to think that exceptions arent supposed to live much
longer after their corresponding try except handling block.
is that true ? actually, how are exceptions raised ? can i reraise o
On 12/9/2011 9:44 AM, tcoq wrote:
Hello,
I'm trying to poll the input stream to see whether there is a new character
available, without blocking my software.
Maybe TInputPipeStream.NumBytesAvailable can help. You can find it in
the documentation of the Pipes unit.
I tried an experiment to m