Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COM Object Creation Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
COM Object Creation Question
Divers
Thread ID:
00768642
Message ID:
00768642
Vues:
55
I'm creating a COM object that does a CREATEOBJECT on
another DLL to an internal property in the INIT:
** MyCOM.Init
This.oProp = createobject("somedll.someclass")
The question is this: If the CREATEOBJECT in the INIT fails,
there is not a whole lot I can do, except return .F. in the
init, which then would generate the message "Class factory
cannoy supply the requested class"

I then thought I would create a setup method that does the
CREATEOBJECT in the INIT. Then I can trap for and handle
the error, if one occurs.

Anyone have any other ideas?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform