Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dde Help
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00027482
Message ID:
00028498
Vues:
49
>I tried closing all open tables, terminating the dde conversation, and releasing all. As you surmised all to no avail. The client had to reboot by had each time to get the entire 10,000 records in.
>
>Auto rebooting in this case will not work, however, I am most interested in your psuedo code for accomplishing that task. I have many other uses for that type of feature.
>
>Further, do you think that the addition of sys(3050,1,15500000) into the program would help??? I read, here, some talk on this, and was wondering if it would help in my situation.
>
>DJ :o)

DJ,

I don't know why auto rebooting wouldn't work as well as doing
it manually. Anyway, here's the pseudo-code:

Exiting/Rebooting:

Declare the Windows API function ExitWindows (Win 3.1 or FPW)
or ExitWindowsEx (Win 95 under VFP).

Establish a DDE link with the Program Manager.

Store (using AddItem) your application in the StartUp
group/folder.

Terminate DDE link.

Disable the ON SHUTDOWN routine.

Call the ExitWindows/ExitWindowsEx function, passing 67 to
reboot.

When the application restarts:

Establish DDE link with the Program Manager.

Remove (DeleteItem) your application from the StartUp group.

Terminate the DDE link.

You might want to pass a parameter, representing the starting
point of the process, to the application. If no parameter is
passed or the value is 0, the restart routine can be bypassed.

In thinking about this, you might be able to get away with
simply restarting Windows, in which case you'd pass 66 to the
ExitWindows function.

Under Win95 using VFP, you might have to do some additional work,
depending on the circumstances. Everything else, however, is the
same.

One other Win95 note. I'm not referring to the PROGMAN.EXE shell
that comes with Windows 95. It recognizes the 'PROGMAN'
application/topic and responds as Win 3.1 did.

Let me know if there's anything else.

George
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform