Information générale
Catégorie:
Codage, syntaxe et commandes
I am writing an application that uses DDE Functions. When the program loads, I want to check if the DDE Server is opened or not. To do so, I use the FindWindow commandand a loop. If it is closed, I want to open it. That's where I have a problem.
When the DDE Server loads, it asks the user to log on. Up to that point, FindWindow returns 0(not found). However, wheb you log on, the DDE Server starts opening tables, indexes, and other stuff, and is not yet ready, but FindWindow now finds the window. Because of this, my program gets out of the loop, and issues a DDEInitiate, and I get an error message. Because all systems are not the same, I can't wait for let's say 10 seconds, and then issue my DDEInitiate. I tried to handle that error message, but VFP does not handle that error(but hanles any other errors I might have).
Now, does anybody knoe a way of handling that error? Or maybe there is a command that lets you not display any errors(such as a SET ECHO OFF, or SET ERROR OFF)?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement