I have found the problem by chance, after having installed several operating systems and only some of the programs work (with no apparent explanation).
The customer's computer, which has a Realtek High Definition sound card on the motherboard, turns out that if no speakers are connected, the card is disabled.
The programs that didn't work were the ones that had a BEEP command placed somewhere in it, when there was an error, to warn the user.
As soon as I connect some speakers, the program works correctly. If I unplug them, the programs that carry the BEEP command stop working.
It is rare that the program does not start because on line 1,320 (to say any one) there is a BEEP command.
Thanks to everyone who has tried to help me, and I hope this information is useful to others who may have a similar error.
Tonight I can sleep peacefully !!