Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using VFP COM in Borland C++ Builder
Message
 
To
05/09/2005 09:36:02
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01046766
Message ID:
01046782
Views:
25
>
> 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
Previous
Reply
Map
View

Click here to load this message in the networking platform