Please help me with ActiveX...

forum.advanced.programming (1998-2005)
A. Marco

Please help me with ActiveX...

Post by A. Marco » 24 Feb 2005, 12:39

 Posted by:  A. Marco 

I have a big trouble using Esri MapObjects ActiveX with Centura Team
Developer 3.1;
There is a class (MapLayer) with a property called GeoDataSet which is a
write only property.
In the apl generated by ActiveX explorer I find the MapLayer class with a
function called PropSetGeoDataSet containing this code:

-------------------------------------------
Function: PropSetGeoDataset
Returns
Boolean:
Parameters
FunctionalVar: GeoDataset
Class: MapObjects2_IMoGeoDataset
Local variables
Boolean: tmpret
Actions
Call __ObjectPushObjectByRef(GeoDataset)
Set tmpret = __ObjectInvoke("GeoDataset", INVOKE_PUT)
Call PopObject(0, GeoDataset)
Call __ObjectFlushArgs()
Return tmpret
-----------------------------------------

When I call this function, centura show me an error dialog on the
__ObjectInvoke line:

-----------------------------------
Error code at invocation of GeoDataset: 80020009
Source Mo20
Error Description: Cannot read a write only property
Press ok to terminate your application
------------------------------------

Why Centura try to read a write only property? How can I solve it?

Thanks,
Marco Aretino

A. Marco

Please help me with ActiveX...

Post by A. Marco » 24 Feb 2005, 14:29

 Posted by:  A. Marco 

Solved!!!!
I replace the INVOKE_PUT constant with INVOKE_PUTREF and remove the
PopObject() function. It works correctly!!!

Marco

Return to “advanced.programming”

Who is online

Users browsing this forum: [Ccbot] and 0 guests