The following code crashes when it is executed within Visual Studio 2022:
CALL GetCurrentDirectory
USING BY VALUE PC-PATH-LENGTH
BY REFERENCE CURRENT-PC-DIRECTORY
RETURNING iRet
END-CALL.
it fails with the error message:
173 Called program file not found in drive/directory: GetCurrentDirectoryA
I updated the PATH variable to include the folders where the COBOL runtime exists. So why does it not find the Windows API function? Is this a limitation of the PE version or some other property to build has not been set correctly?
Any help is appreciated.
Kevin



