473,320 Members | 2,054 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

CLR compile switch and LNK4227

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
Nov 17 '05 #1
0 1382

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Patrick Kowalzick | last post by:
Dear all, I just wondered if it is possible to count the number of classes created via a template class at compile time. To show what I mean I post an example, which is not working but carries...
3
by: Lauren Quantrell | last post by:
Been having a lot of trouble lately getting one very large ADP file to save as an ADE. -All modules (including form and report modules) using Option Explicit (checked and double-checked that.)...
13
by: Adam Blair | last post by:
Is it possible to bind a switch statement to an Enum such that a compile-time error is raised if not all values within the Enum are handled in the switch statement? I realise you can use default:...
1
by: Dave Booker | last post by:
I am using VS2003. How can I compile a (32-bit) C# project so that the program can use more than 2GB of memory space? I came across a /3G compile option searching on this subject, that is...
3
by: Lei Jiang | last post by:
If I have to add __gc in every class, it would be a huge work. Is there any option that could compile all C++ class into manganged class without modify any source code?
9
by: Raj | last post by:
public static void HandleException(ref Exception io_exException, bool i_blnPropagateException) { switch (true) { case io_exException is ApplicationHandledException: { if...
2
by: Frederick Gotham | last post by:
I don't like macros for a few reasons -- here's just a few... Reason 1: namespace ArbitraryNamespace { #define Func(i) ( i + '0' ) }
3
by: Angus | last post by:
Hello I am getting this compile error: error C2259: 'PublicTON' : cannot instantiate abstract class due to following members: csta2less.h(1755) : see declaration of 'PublicTON' Class is like...
10
by: Bin Chen | last post by:
switch(i) { case 1: break; case 2: break; case N: break; }
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.