` Printed Icetips Article

Icetips Article



COM: Example 2
2004-01-15 -- Carl Barnes
 
Newsgroups: softvelocity.public.clarion6

(In response to Andy Ireland)

Thanks for the quick reply. No time today but will review it closely tomorrow.

Your classes don't have IShellLink but have IShellLinkDual. I prefer to stay
away from the extra complexity of variants in IDispatch interfaces.

I cannot seem to find Type Lib stuff for some of the Shell interfaces like
IShellLink. Is it possible that the definitions only exist in
WinSDK\Includes\ShlObj.h ? It has IShellLink and others like
IProgressDialog.

The OleInitialize you refer to I think you found in Alexey's original code? He
named a method OLEInit.Construct even though it called CoInitialize. And he
also named IUnknown as IOLE which was a little odd. With some name changes its
a great little COM example.

What is a LPCOLESTR? Alexey uses a BSTRING so I just left it that way. E.g.
IPersistFile::Save
HRESULT Save(
  LPCOLESTR pszFileName,
  BOOL fRemember
);



Printed May 6, 2024, 6:08 am
This article has been viewed/printed 35110 times.
Google search has resulted in 15 hits on this article since January 25, 2004.