Ok, so after some investigating I count that the locative.bat file was not updated to look for Visual Studio Community 2022, so I added the following lines.
if exist "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat" (
set VSCMD_DEBUG=3
echo Found Visual Studio Community 2022
echo Ring build target is: %ringbuildtarget%
echo Start directory is: %cd%
set VSCMD_START_DIR=%cd%
call "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat" -arch=%ringbuildtarget%
exit /b
)
Then, I installed Desktop development with C++ in Visual Studio Community Edition 2022. Now, my program compiles but I get an error when I run it. If I run it interactively by double-clicking, a console window flashes open and then closes immediately. If I run it from the command line, I can see the error: Line 2 Error (R38) Runtime Error in loading the dynamic library! In loadlib () in file test.ring.
This is all that I have in my script. It looks like there is an error loading ring_odbc.dll, which is strange, since I don't think my basic test should be using anything from there.
load "stdlib.ring"
? "Testing..."
? date()
sleep(20)
Thank you.