I have a native c++ application that I built with the /clr compiler
option. When the application is linked, I receive the following
warnings:
FaddClient.obj : warning LNK4227: metadata operation warning
(00131189) : Inconsistent parameter information in duplicated methods
(methods: _bstr_t.__ctor; type: <Module>): (0x08000005).
FaddClient.obj : warning LNK4227: metadata operation warning
(00131189) : Inconsistent parameter information in duplicated methods
(methods: _bstr_t.Data_t.__ctor; type: <Module>): (0x0800000d).
LairClient.obj : warning LNK4227: metadata operation warning
(00131189) : Inconsistent parameter information in duplicated methods
(methods: _bstr_t.__ctor; type: <Module>): (0x08000005).
LairClient.obj : warning LNK4227: metadata operation warning
(00131189) : Inconsistent parameter information in duplicated methods
(methods: _bstr_t.Data_t.__ctor; type: <Module>): (0x0800000d).
The two classes involved in the warning are the only two components
that are accessing an external component via COM. The interfaces on
these external components both use the BSTR type. I kind of
understand what the warnings mean, but I don't know how to resolve the
problem.
Any help with this would be great!
Thanks,
Andrew