This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

wrong result type for function LMDFileCreate

edited November 2011 in LMD ElPack
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.

Comments

This discussion has been closed.