I hope you aren't saying that you can't share the IDL because it is intellectual property. Once you
make your COM object visible, the interface is there for the world to see.
Sorry,I can't share the IDL code here.
After I upgraded midl.exe 5.0 to midl.exe version 7.0.500.1, I got errors:
Error 50 fatal error C1189: #error : You need a Windows 2000 or later
to run this stub because it uses these features: e:\myfile_p.c.
It might be the robust option for midl, so I added /no_robust option
for midl. The error C1189 was gone, but I got a lot of warnings and
errors in proxy myfile_p.c file:
........
(4173) : warning C4133: 'initializing' : incompatible types - from
'const MIDL_STUBLESS_PROXY_INFO *' to 'const IID *'
e:\myfile_p.c(4174) : warning C4090: 'initializing' : different
'const' qualifiers
e:\myfile_p.c(4194) : error C2078: too many initializers
e:\myfile_p.c(4255) : warning C4090: 'initializing' : different
'const' qualifiers
e:\myfile_p.c(4275) : error C2078: too many initializers
........
The same project passes VC 2003 VC 7.1 compiler using midl version 5.
Any suggestions? Thanks a lot in advance!
Hj
"Scot T Brennecke" wrote:
Please share the IDL code that is being compiled here. Maybe that will help us diagnose it.
<hjia88@gmail.com> wrote in message
news:a7b8a964-0be7-4a72-958f-66ca4de9c2b6@q14g2000vbn.googlegroups.com...
I recently migrated my project from VS2003 (VC7.1) to VS2008 (VC9.0).
I got many compiler warnings and errors C2078 in my proxy *_p.c file:
....
e:\*_p.c(3497) : warning C4133: 'initializing' : incompatible types -
from 'const MIDL_STUBLESS_PROXY_INFO *' to 'const IID *'
e:\*_p.c(3498) : warning C4090: 'initializing' : different 'const'
qualifiers
e:\*.c(3504) : error C2078: too many initializers
e:\*_p.c(3551) : warning C4133: 'initializing' : incompatible types -
from 'const MIDL_STUBLESS_PROXY_INFO *' to 'const IID *'
e:\*_p.c(3552) : warning C4090: 'initializing' : different 'const'
qualifiers
e:\*_p.c(3560) : error C2078: too many initializers
....
The same project was compiled with VC 2003.
Any insight? Thanks in advance!
HJ