>#include <winbase.h>
Remove that line. It's superfluous anyway as windows.h correctly includes winbase.h.
Hi,
i removed winbase.h file...
I got following error.
C:\Program Files\Microsoft SDK XPSP2\Include\ObjBase.h(378) : error C2146: syntax error : missing ';' before identifier 'IRpcStubBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjBase.h(378) : error C2079: 'IRpcStubBuffer' uses undefined struct 'IRpcStubBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjBase.h(379) : error C2146: syntax error : missing ';' before identifier 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjBase.h(379) : error C2371: 'IRpcChannelBuffer' : redefinition; different basic types
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(47) : error C2146: syntax error : missing ';' before identifier 'IUnknown'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(47) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(53) : error C2146: syntax error : missing ';' before identifier 'AsyncIUnknown'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(53) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(59) : error C2146: syntax error : missing ';' before identifier 'IClassFactory'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(59) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(109) : error C2371: 'IUnknown' : redefinition; different basic types
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(47) : see declaration of 'IUnknown'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(135) : error C2065: 'This' : undeclared identifier
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(136) : error C2065: '_pRpcChannelBuffer' : undeclared identifier
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(136) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(137) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(137) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(137) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(137) : error C2182: 'IUnknown_QueryInterface_Stub' : illegal use of type 'void'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(137) : error C2078: too many initializers
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(137) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(138) : error C2059: syntax error : ')'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(145) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(146) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(146) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(146) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(146) : error C2182: 'IUnknown_AddRef_Stub' : illegal use of type 'void'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(146) : error C2078: too many initializers
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(146) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(147) : error C2059: syntax error : ')'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(154) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(155) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(155) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(155) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(155) : error C2182: 'IUnknown_Release_Stub' : illegal use of type 'void'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(155) : error C2078: too many initializers
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(155) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(156) : error C2059: syntax error : ')'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(285) : error C2371: 'AsyncIUnknown' : redefinition; different basic types
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(53) : see declaration of 'AsyncIUnknown'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(396) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(397) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(397) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(397) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(397) : error C2182: 'AsyncIUnknown_Begin_QueryInterface_Stub' : illegal use of type 'void'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(397) : error C2078: too many initializers
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(397) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(398) : error C2059: syntax error : ')'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(408) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(409) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(409) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(409) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(409) : error C2182: 'AsyncIUnknown_Finish_QueryInterface_Stub' : illegal use of type 'void'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(409) : error C2078: too many initializers
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(409) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(410) : error C2059: syntax error : ')'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(419) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(420) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(420) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(420) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(420) : error C2182: 'AsyncIUnknown_Begin_AddRef_Stub' : illegal use of type 'void'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(420) : error C2078: too many initializers
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(420) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(421) : error C2059: syntax error : ')'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(430) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(431) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(431) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(431) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(431) : error C2182: 'AsyncIUnknown_Finish_AddRef_Stub' : illegal use of type 'void'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(431) : error C2078: too many initializers
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(431) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(432) : error C2059: syntax error : ')'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(441) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(442) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(442) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(442) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(442) : error C2182: 'AsyncIUnknown_Begin_Release_Stub' : illegal use of type 'void'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(442) : error C2078: too many initializers
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(442) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(443) : error C2059: syntax error : ')'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(452) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(453) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(453) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(453) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(453) : error C2182: 'AsyncIUnknown_Finish_Release_Stub' : illegal use of type 'void'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(453) : error C2078: too many initializers
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(453) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(454) : error C2059: syntax error : ')'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(475) : error C2371: 'IClassFactory' : redefinition; different basic types
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(59) : see declaration of 'IClassFactory'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(559) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(560) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(560) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(560) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(560) : error C2182: 'IClassFactory_RemoteCreateInstance_Stub' : illegal use of type 'void'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(560) : error C2078: too many initializers
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(560) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(561) : error C2059: syntax error : ')'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(571) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(572) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(572) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(572) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(572) : error C2182: 'IClassFactory_RemoteLockServer_Stub' : illegal use of type 'void'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(572) : error C2078: too many initializers
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(572) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression
C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'
C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(573) : error C2059: syntax error : ')'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(47) : error C2146: syntax error : missing ';' before identifier 'IMarshal'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(47) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(53) : error C2146: syntax error : missing ';' before identifier 'IMarshal2'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(53) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(59) : error C2146: syntax error : missing ';' before identifier 'IMalloc'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(59) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(65) : error C2146: syntax error : missing ';' before identifier 'IMallocSpy'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(65) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(71) : error C2146: syntax error : missing ';' before identifier 'IStdMarshalInfo'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(71) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(77) : error C2146: syntax error : missing ';' before identifier 'IExternalConnection'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(77) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(83) : error C2146: syntax error : missing ';' before identifier 'IMultiQI'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(83) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(89) : error C2146: syntax error : missing ';' before identifier 'AsyncIMultiQI'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(89) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(95) : error C2146: syntax error : missing ';' before identifier 'IInternalUnknown'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(95) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(101) : error C2146: syntax error : missing ';' before identifier 'IEnumUnknown'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(101) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(107) : error C2146: syntax error : missing ';' before identifier 'IBindCtx'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(107) : warning C4091: ' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(113) : error C2146: syntax error : missing ';' before identifier 'IEnumMoniker'
C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(113) : fatal error C1003: error count exceeds 100; stopping compilation