help.OnsyncSave Event sink Exchange 2003

help.OnsyncSave Event sink Exchange 2003

Post by bWFuaXN » Sun, 01 May 2005 18:11:04



hi all ,

I am developing simple Event sink for onsyncsave Exchange event.
I got stuck while crating COM in which i got these errors..

-------------------Configuration: exchangesink - Win32
Debug--------------------
E:\EXCHANGE\exchangesink\exchangesink.idl(47) : error MIDL2009 : undefined
symbol : IExStoreEventInfo [ Procedure 'OnSyncSave' ]
Error executing midl.exe.

exchangesink.dll - 1 error(s), 0 warning(s)


And My IDL File Look Like This.....

import "oaidl.idl";
import "ocidl.idl";
cpp_quote("struct IExStoreEventInfo;")

[
uuid(A1B3DECB-1B49-4E7A-B39F-129BC66636D7),
version(1.0),
helpstring("exchangesink 1.0 Type Library")
]
library EXCHANGESINKLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
importlib("msado25.tlb");
importlib("cdoex.tlb");
importlib("exevtsnk.tlb");
[
uuid(FB437D99-A76D-49EF-9D51-D1EBBAFBC08C),
helpstring("mysink Class")
]
coclass mysink
{
[default] interface Imysink;
};
};

[
object,
uuid(64E6F31D-AC24-4AFF-A6AB-A6CCD315466A),

helpstring("Imysink Interface"),
pointer_default(unique)
]
interface Imysink : IUnknown
{
[helpstring("method OnSyncSave")] HRESULT OnSyncSave([in] IExStoreEventInfo
*pEventInfo, [in] BSTR bstrURLItem, [in] LONG lFlags);
[helpstring("method global")] HRESULT global([in] int a);
[helpstring("method aaa")] HRESULT aaa([in] int a);
};


So please help me out..


thanx in advance..
bye
<<Manish
 
 
 

help.OnsyncSave Event sink Exchange 2003

Post by Medha Atr » Sun, 01 May 2005 20:06:59

IExStoreEventInfo interface is defined in EXOLEDB.DLL, so you might
need to import that explicitely, since compiler is not able to find it.

HTH.

Medha

 
 
 

help.OnsyncSave Event sink Exchange 2003

Post by bWFuaXN » Tue, 03 May 2005 13:14:03

hi ,
Thanx ..& you r right i just solved my problem from this link..>
.. http://www.yqcomputer.com/ ;en-us;288156
Infact i started with the wrong step..
I was not following Step 3,4,5.. in the above Liink(Coz. i am very new to
Com..).
anyways thanx..
<<MAnish