how to restart an app

Post Reply
User avatar
José Luis Sánchez
Posts: 484
Joined: Thu Oct 13, 2005 9:23 am
Location: Novelda - Alicante - España
Contact:

how to restart an app

Post by José Luis Sánchez »

Hello:
I have an application and I want to finish and restart it again. This is needed in situations like change language in menus or similar things, but I don't know how to do it. Any sugestion ?

Regards,
José Luis
User avatar
José Luis Sánchez
Posts: 484
Joined: Thu Oct 13, 2005 9:23 am
Location: Novelda - Alicante - España
Contact:

Post by José Luis Sánchez »

No, I want to do with the same exe. Imagine you allow the user to select the language of the app, and you have your menus with i18n() calls... you have to reinit the app to achieve the menus on the new language selected. It's pretty smart if the app reinit for itself, not need the user doubleclick the icon again.

I want this to do my Colossus - http://www.alanit.com/programas/colossus.php - multilingual ;-)

Regards,
Frank Demont
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Post by Frank Demont »

I not tryed , but :

Start the aplication with a batch file with as content :

YourExe.exe
CALL YoutBatch.bat

Then you have the possibilty to change YourBatch.bat from in the aplication and after that close the aplication

Frank
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

José Luis Sánchez wrote:No, I want to do with the same exe. Imagine you allow the user to select the language of the app, and you have your menus with i18n() calls... you have to reinit the app to achieve the menus on the new language selected. It's pretty smart if the app reinit for itself, not need the user doubleclick the icon again.

I want this to do my Colossus - http://www.alanit.com/programas/colossus.php - multilingual ;-)

Regards,
What is "i18n() calls"? Anyway, it should be possible to change the menu items language without restarting the EXE. Why do you want to restart the EXE?

EMG
DanielPuente
Posts: 108
Joined: Sun Oct 09, 2005 6:12 pm
Location: Mar del Plata - Argentina
Contact:

Post by DanielPuente »

Jose Luis:

You can call another fw application that calls your exe again, with a non visible window and then exit as the only task to do. In your fw program you call this exe and quits. The new application can activate a timer to wait a few seconds before execute the other program, if necessary.

Regards,
Daniel Puente
Mar del Plata, Argentina
danielpuente@speedy.com.ar
puenteda@hotmail.com
User avatar
José Luis Sánchez
Posts: 484
Joined: Thu Oct 13, 2005 9:23 am
Location: Novelda - Alicante - España
Contact:

Post by José Luis Sánchez »

Enrico: the i18n() calls are the way to internazionalizate the app using the tools provided with xharbour.
Daniel: I know the way to do it, but I want to do it with the same app.

Regards,
Post Reply