Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Property not found
Message
 
To
13/04/2005 09:17:18
Deepak Chopra
IBM Global Services India Pvt. Ltd.
Pune, India
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01004121
Message ID:
01004389
Views:
18
Can you paster your code here from Command Window which produces the error?

>Hi,
>
>I have created a small dll using the following code and registered in Com+.
>
>#INCLUDE foxpro.h
>DEFINE CLASS myclass AS session olepublic
> * Define property
> MyProperty = 5.2
> * Set the COM attributes for MyProperty
> DIMENSION MyProperty_COMATTRIB[4]
> myproperty_COMATTRIB[1] = COMATTRIB_READONLY
> myproperty_COMATTRIB[2] = "Helptext displayed in object browser"
> myproperty_COMATTRIB[3] = "MyProperty"&& Proper capitalization.
> myproperty_COMATTRIB[4] = "Float"&& Data type
>ENDDEFINE
>
>
>when I am creating an object using the same (using command createobjectex('test.myclass','9.182.198.189')) test is my dll name, there is no issue but when I am try to display the "MyProperty" from command window, I m geeting error 'property MyProperty not found'.
>
>Please help.
>
>Thanks in advance.
>
>Regards.
>Deepak.
- Jayesh
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform