Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link COM: Constructing Interfaces 3 2002-12-29 -- Andy Ireland Newsgroups: comp.lang.clarion
> > IInterface interface,com
> > ! methods
>
> Add() ????
One of the methods in the Interface. As shown in OLEView. What is the
control. I will download and look for you. Also someone else will need to
tell you how to get the Interface pointer using clarions OLE control as I do
not use it.
> RESULT_ String(20) ?????
A HRESULT is an Error code structure (bitwise) representing COM error codes.
It is a long. Typically S_OK is success, S_FALSE is success with info and
E_FAIL is a failure however the msb contains whether successful or not and
there are about 2000 of these errors that are common to the OS and more that
can be interface specific. You should always therefore read supporting docs.
> > code
> > IITEM &= (Large Number ?????)
The address you get back from the OLE control for the interface you want.
Cast it to a clarion reference for that interface.
> > hr = IInt.Method() ---- Add() ?????
Yes. Add would be the method you would call or any other in the interface
for that matter. You will also need to call release on the Interface when
finished with it. This is a method in the IUnknown interface which
ultimately all COM interfaces are decendants of. If you can get the
Interface pointer from the OLE control, the rest is easy and I can show
everyone how to do it.
Regards
Andy
Plugware Solutions.com Ltd, taking the puzzle out of I.T
Tel : +44 1249 813335
Fax : +44 1249 813462
Today is November 21, 2024, 7:33 am This article has been viewed 35370 times. Google search has resulted in 14 hits on this article since January 25, 2004.
|
|