Page 1 of 2

Need ActiveX / COM info

PostPosted: Aug 12, 2004 @ 11:27pm
by kornalius
Hi,

I have almost finished implementing the COM functions into PPL but I have a problem. I see a bunch of COM objects in my registry but I don't know what methods (names) they have in them. I can load them but I need to be able to Invoke a method. I would like to test with a an easy object. I have seen the "GridCtrl.GridCtrl.1" and would like to Invoke one of it's method.

Or maybe someone has a com object that has all the documentation with it?

PostPosted: Aug 15, 2004 @ 4:47am
by PointOfLight

PostPosted: Aug 15, 2004 @ 5:10am
by kornalius

PostPosted: Aug 15, 2004 @ 5:22am
by PointOfLight

PostPosted: Aug 15, 2004 @ 3:08pm
by kornalius

PostPosted: Aug 15, 2004 @ 3:19pm
by PointOfLight

PostPosted: Aug 15, 2004 @ 10:19pm
by kornalius

PostPosted: Aug 16, 2004 @ 4:46pm
by kornalius

PostPosted: Aug 17, 2004 @ 7:21am
by mervjoyce
Hello All,

I have just returned from my 10-day break. Managed to download the 0.7b release of PPL while I was away. Found a little time to run some basic tests and continue with my GPS programming exercise. All the "fixes" appear to work fine and release 0.7b appears is working well.

Kornalius ... I thought you were having a break ... it certainly wouldn't appear so from the work you have been doing ... looks great and will also be interested in testing some of the ADOCE stuff.

cheers

PostPosted: Aug 17, 2004 @ 8:11pm
by kornalius

PostPosted: Aug 17, 2004 @ 8:53pm
by PointOfLight

PostPosted: Aug 17, 2004 @ 9:43pm
by kornalius

PostPosted: Aug 17, 2004 @ 10:25pm
by PointOfLight

PostPosted: Aug 18, 2004 @ 3:54am
by kornalius
I think I will leave it this way for now and see what the beta testers come up with. I will then get solid samples and I will see what can be done. So far, the COM functions work very well.

#IMPORT "activex.dll"
CreateObject("clsid or progid")
Invoke(objecthandle$, "method name", [parameters...])
GetProperty(objecthandle$, "property name")
SetProperty(objecthandle$, "property name", value)
T(Value, VariantType)
CreateSafeArray()
SafeArrayDestroy()

I have support for all types of VARIANT including SafeArrays.

The T() function converts a value to a specific VARIANT type. ex:

T(10, VT_BSTR)

PostPosted: Aug 18, 2004 @ 4:00am
by PointOfLight
Is the #IMPORT step required, or can you use a COM object without it? Also, any ETA on when this version will be arriving in our greedy little hands?