Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PRB? - Debugger/Programmatically instantiated ActiveX
Message
De
31/05/2002 15:55:55
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00662665
Message ID:
00663648
Vues:
7
Love dem bugs :-)

I've seen this sort of behavior with other ActiveX controls...I'll look into it and see if I can find an explanation. Thanks, GT.


>Hiya Gonz,
>
>Knowing how you love bugs...< bg >
>
>I ran across a minor problem with the debugger in VFP 7.0 SP1 and a programmtically ActiveX control, specifically the Microsoft Common Dialogs Control. I should note a couple of things before proceeding.
>
>First, this does not occur with the control dropped on a form. Since the control, however, must be dropped on a form in order to be available in a distributed application (plus you don't have access to the debugger), it isn't really major.
>
>Second, and perhaps more importantly, I haven't tested any of the other Microsoft distributed controls to see if the problem manifests itself with them.
>
>Here's what happened...From the command window I issued
oDialog = CREATEOBJECT("MSComDlg.CommonDialog.1")
Now the purpose of this was to examine the various properties to see if there was one that was undocumented, or if there some piece of information that I was missing in trying to determine the printer selected with the ShowPrinter method.
>
>I issued the oDialog.ShowPrinter from the command window and opened the debugger. Naturally, in the locals window there was oDialog and I expanded to examine the properties. As I scrolled down, up popped the printer dialog on top of the debugger. When I looked back at the locals windows, there was the method name. Apparently, the appearance of it in the window caused the method to fire.
>
>After several attempts, with the dialog re-appearing each time I failed, I finally managed to close the debugger.
>
>Not a real big deal, but unexpected.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform