Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
7
Erster Beitrag:
vor 1 Jahr, 4 Monaten
Letzter Beitrag:
vor 1 Jahr, 4 Monaten
Beteiligte Autoren:
DannHCS, GuenterP, Fabrice Harari

[WD20] Modify Error Message on one-instance exe

Startbeitrag von DannHCS am 28.06.2016 09: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]

Antworten:

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

von Fabrice Harari - am 28.06.2016 12:35
Hi Fabrice,

thank you very much!

Regards,
Dann

von DannHCS - am 28.06.2016 13:00
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.

von GuenterP - am 28.06.2016 15:24
Hi GuenterP,

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

Dann

von DannHCS - am 29.06.2016 08:08
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 there, loads the program. In any case it terminates itself.

von GuenterP - am 29.06.2016 08:28
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

von DannHCS - am 29.06.2016 12:13
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.