remobjects / pascalscript

pascalscript
Other
447 stars 178 forks source link

fpc does not define ERROR_MOD_NOT_FOUND on linux #197

Open User4martin opened 5 years ago

User4martin commented 5 years ago

SHA-1: 76e377efa5fddc55b3a6a3a3d944317bdfde4a12 Add ProcessDllImportEx2 which gives more info back to caller.

adds

    ErrorCode := ERROR_MOD_NOT_FOUND;

This fails under fpc, when building for linux (and probably other none windows targets)

At least fpc 3.0.4 does not define ERROR_MOD_NOT_FOUND except for windows, wince, ...

User4martin commented 5 years ago

fpc does also not have GetLastError for linux