PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD20] Modify Error Message on one-instance exe
[WD20] Modify Error Message on one-instance exe
Iniciado por guest, 28,jun. 2016 11:10 - 6 respuestas
Publicado el 28,junio 2016 - 11:10
Hi,

Is there a way to modify (FRENCH!) message of error when you try to open an one-instance exe?

Thank you,
Dann
[attachment 2062 Immagine.png]
Publicado el 28,junio 2016 - 14:35
Hi,

3 ways that I know of:
- tell the support of the mistake (message in french) and hope for the best
- use the pcsoft ($$$) utility wdINT able to translate all messages stored in dlls (this one should be there too)
- allow the exe to be open more than once, and in the project init code, check yourself if your exe is already in the exe list. If it is, do what you want (give focus to it before endprogram, display a message, etc.)

Best regards
Publicado el 28,junio 2016 - 15:00
Hi Fabrice,

thank you very much!

Regards,
Dann
Publicado el 28,junio 2016 - 17:24
Hi, very interesting. Many of my WINDEV-programs are set to single-instance and if the program is open/running already, it just will bring this program to the screen foreground, no error message will happen at all. If the running program is minimized to the task bar the it will be de-minimized and shown.
Publicado el 29,junio 2016 - 10:08
Hi GuenterP,

it happens only when the WinStatus is set to Invisible (with icon in systray)

Dann
Publicado el 29,junio 2016 - 10:28
Hi, this is a very different situation. You didn't tell us anything about "systray" in your 1st posting. Maybe, your only solution to that is a small "program launcher" program which looks for the existence of the program and in case it is not ther, loads the program. In any case it terminates itself.
Publicado el 29,junio 2016 - 14:13
Hi,
I didn't tell anything about systray because the object is to modify the french message regardless of the cause.

Anyway, I think I will use the WDInt to translate the message.

Thanks to all
Regards
Dann