Kbase P5901: Cannot read IP address in the registry from 4GL on Win2k or
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/7/2003 |
|
Status: Unverified
FACT(s) (Environment):
Progress 9.x
FACT(s) (Environment):
Windows 2000
FACT(s) (Environment):
Windows XP
SYMPTOM(s):
Cannot read IP address in the registry from 4GL on Win2k or WinXP
Cannot read HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services from 4GL
CAUSE:
The problem when reading IP address in the registry is a known issue:
In new versions of Windows (Windows 2000 at a minimum) Microsoft defines a new type of Registry key (REG_EXPAND_SZ). This key has data in it (enclosed by percent signs) that should be replaced with the proper Registry data when the value is read. At this time, Progress is unable to handle this type of data and returns the unknown value.
CAUSE:
Bug# 20000914-015
FIX:
A good solution made by Bill Prew is available on http://www.global-shared.com/api/index.htm
Use the 'search' tab on the folder on the left in order to search for 'get IP address' and you will find out a document named 'The IP Address of the Local Computer ' (Should be the 2nd in the list) This solution also works with other flavor of windows (98 and NT4)