I didn't pay attention to this, but it turns out that in my code, even before you changed everything to 64, the execution of the program in EXE did not work initially, even in my 32-bit version, if compiled via Twin Basic. I don't know why...
And if you compile this project via VB6, then everything works. Strangely, I think it has to do with the DispCallFunc call...