Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have created two IDispatch interfaces in my .idl file. namely IWksLayer and IWksItem simillarly I have created their dispinterface _DWksLayer and _DWksItem. I have done the forward declaration of these interfaces in idl file as below:
C++
dispinterface   _DWksItem;
dispinterface   _DWksLayer;

interface       IWksItem;
interface       IWksLayer;

and have same declaration in Library section of .idl file. I am using parameter of type _DWksItem in one of the method of _DWksLayer as below:
C++
[id(14)] _DWksItem* GetItem(long ItemID);

while compiling above line in idl file I am getting following error.
error MIDL2009: undefined symbol : _DWksItem [ Dispinterface '_DWksLayer' ]

Please let me know if anybody konws about the fix for this error.

Thanks
Posted
Updated 28-Dec-10 1:18am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900