Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using VFP COM in Borland C++ Builder
Message
 
À
05/09/2005 09:36:02
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Divers
Thread ID:
01046766
Message ID:
01046782
Vues:
16
>
> how using property typs example
> com_object.com_poperty.xdata[1].name
> com_object.com_poperty.xdata[1].stat
> how define type tis property how using or definition in c++
> this property create programable Scatter Name com_object.com_poperty.xdata[1]
>

In Your VFP-Classes You might need to add COMATTRIB-Information for the Type Library. Should be something like
#define COMATTRIB_RESTRICTED      1
#define COMATTRIB_HIDDEN         64
#define COMATTRIB_NONBROWSABLE 1024

#define COMATTRIB_READONLY      0x100000
#define COMATTRIB_WRITEONLY

DEFINE CLASS MyClass as Custom
    nPages = 0
    cTitle = "Hello World"

    dimension cTitle_COMATTRIB[4]
    cTitle_COMATTRIB[1] = COMATTRIB_READONLY
    cTitle_COMATTRIB[2] = "This is the title that will be used"
    cTitle_COMATTRIB[3] = "cTitle"
    cTitle_COMATTRIB[4] = "String" 

    ....

ENDDEFINE
Something like that.

You should also try if Your Properties simply are not visible, but can be addressed without an error. I sometimes have that when dealing with COM-Objects. I think it's a problem with the type Libraries
Regards from Berlin

Frank

Dietrich Datentechnik (Berlin)
Softwarekombinat Teltow (Teltow)

Frank.Dietrich@dd-tech.de
DFPUG # 327
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform