Kbase P123714: Error 13712 When Passing SHORT to external DLL in 10.1B
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  02/05/2007 |
|
Status: Unverified
FACT(s) (Environment):
OpenEdge 10.1B
SYMPTOM(s):
Application makes call to Win32 API function in user32.dll
Application passes to HWND (window handles) to the function (GetParent)
The HWND parameters are being passed as a SHORT
Value does not fit in DLL datatype. (13712)
CHANGE:
Migrated from OpenEdge 10.1A to OpenEdge 10.1B
CAUSE:
In 32-bit Windows all HWND (window handles) are 32 bits long. A SHORT is only 16 bits long.
FIX:
Modify the external procedure definition and change the data type for the HWND parameters from SHORT to LONG.