Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

wrong result type for function LMDFileCreate

LMDFileCreate have the result type integer.
But it calls CreateFileW which have a result type THandle which is a unsigned integer.
This causes exception if you want to compiler your apps with rangecheck.

We have 2 possibilities to solve this problem:

1, Change result type to THandle (LongWord = Unsinged Integer) to get the correct type back

2, Add {$R-} ... {$R+} to the code.
But you will have to write more code to get respect to the configured compiler settings.
Tagged:

Comments

This discussion has been closed.