[Migrated content. Thread originally posted on 21 May 2012]
In NET EXPRESS code we have code that reads as:SET MPR-POINTER TO ENTRY "MPR.DLL".
IF MPR-POINTER = NULLS
MOVE "** UNKNOWN **" TO WS-OPERATOR.
(where MPR-POINTER defined as 01 PROCEDURE-POINTER)
This works and when run ALWAYS returns a value into MPR-POINTER.
In VisCOBOL code reads as:
SET MPR-POINTER TO ENTRY "MPR.DLL".
IF MPR-POINTER = NULLS
MOVE "** UNKNOWN **" TO WS-OPERATOR.
(where MPR-POINTER defined as 01 PROCEDURE-POINTER)
This DOES NOT work and the value returned to MPR-POINTER = NULL.
As mpr.dll is in C:\\Windows\\System32 directory and is correctly pathed in the Viscobol setup (as seen by typing PATH in the VisCOBOL command Prompt Dos BOX) then why does this code fail to work in VisCOBOL??