Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
'Object class is invalid for this container' Error
Message
De
25/10/2001 10:11:46
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00573157
Message ID:
00573167
Vues:
31
>Hi,
>I´m adding an COM Server (DLL) to a form, by this code at run time:
>thisform.addObject('loCir','circuitos.circuito')
>And it gives me exactly this error:
>'Object class is invalid for this container'
>
>The DLL is correctly registered. Custom class is its parent, and only has a few methods.
>What am I doing wrong?
>
>Thanks,
>Ibai

Ibai,
You cannot addobject a COM DLL to a form :

thisform.myCustomProperty = createobject('circuitos.circuito')

Likewise you cannot add objects to containers that are incompatible. ie: You can't add a column to a form or page to grid.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform