how to restart an app

how to restart an app

Postby José Luis Sánchez » Sun Oct 30, 2005 4:07 pm

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: 556
Joined: Thu Oct 13, 2005 9:23 am
Location: Novelda - Alicante - España

Re: how to restart an app

Postby Enrico Maria Giordano » Sun Oct 30, 2005 4:33 pm

Using an external EXE or BAT?

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

Postby José Luis Sánchez » Sun Oct 30, 2005 7:16 pm

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,
User avatar
José Luis Sánchez
 
Posts: 556
Joined: Thu Oct 13, 2005 9:23 am
Location: Novelda - Alicante - España

Postby Frank Demont » Sun Oct 30, 2005 7:40 pm

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
Frank Demont
 
Posts: 142
Joined: Sun Oct 09, 2005 10:59 am

Postby Enrico Maria Giordano » Sun Oct 30, 2005 9:57 pm

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
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby DanielPuente » Mon Oct 31, 2005 4:27 pm

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
DanielPuente
 
Posts: 108
Joined: Sun Oct 09, 2005 6:12 pm
Location: Mar del Plata - Argentina

Postby José Luis Sánchez » Wed Nov 02, 2005 8:21 am

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,
User avatar
José Luis Sánchez
 
Posts: 556
Joined: Thu Oct 13, 2005 9:23 am
Location: Novelda - Alicante - España


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 67 guests