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 2 2002-12-29 -- Andy Ireland Newsgroups: comp.lang.clarion
This is how you would go about converting the Interface....
IItem interface(IDispatch),com
get_Title procedure(*long bstrTitle),HRESULT
put_Title procedure(long rhs),HRESULT
get_ID procedure(*long ID),HRESULT
....
....
end
The property methods are typically called get / set methods.
IDispatch is as follows....
IDispatch interface(IUnknown),com
GetTypeInfoCount procedure(*long pctinfo),HRESULT
GetTypeInfo procedure(long iTInfo, |
long lcid, |
long ppTInfo),HRESULT
GetIDsOfNames procedure(long riid, |
long prgszNames, |
long cNames, |
long lcid, |
long prgDispId),HRESULT
Invoke procedure(long dispIdMember,
long riid, |
long lcid, |
long wFlags, |
long pDispParams, |
long pVarResult, |
long pExcepInfo, |
*long uArgErr),HRESULT
end
and IUnknown is ....
IUnknown interface,com
QueryInterface procedure(long riid, *long pvObject),long
AddRef procedure,long,proc
Release procedure,long,proc
end
But you must determine whether you can get the raw address first. I
think Jim Kane has shown how to do this in the past.
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, 6:31 am This article has been viewed 35381 times. Google search has resulted in 13 hits on this article since January 25, 2004.
|
|