Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data session persistence?
Message
 
À
24/02/2011 08:53:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01501524
Message ID:
01501684
Vues:
49
Tamar,

Thanks for your suggestions.

1. I understand your first one.

2. I'm not clear what you are saying in the second one. I am using a VFP client to instantaite my COM server for testing, although the ultimate client will be a C++ app at this point. Is this what you are suggesting?

Jim

>>All of this would be much easier to figure out if I could actually run the COM server under the VFP debugger, but that is not possible without a great deal of effort.
>
>Jim - I'm a big believer that every VFP COM Server needs a LogIt (or AddToLog or ...) method that writes out whatever you pass it to a text file. Set up the log in the server's Init method, storing the filename in a property. Then, it only takes one line to add some debugging code anywhere in the object:
>
>This.LogIt("Starting blah blah blah. Variable xyz = " + m.xyz)
>
>You can also instantiate VFP objects defined as COM servers natively in VFP for testing. It's not complete testing, but it can save you a lot of work up front as you weed out the typos and other simple errors.
>
>Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform