Click here to Skip to main content
15,920,217 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: C++ Files Pin
Navin23-Apr-04 9:42
Navin23-Apr-04 9:42 
GeneralInheritance of String class Pin
ra_sasi21-Apr-04 10:45
ra_sasi21-Apr-04 10:45 
GeneralRe: Inheritance of String class Pin
Phil Boyd22-Apr-04 6:26
Phil Boyd22-Apr-04 6:26 
GeneralRe: Inheritance of String class Pin
ra_sasi23-Apr-04 6:58
ra_sasi23-Apr-04 6:58 
GeneralEmbed C# controls in MFC dialogs/views Pin
rkvs20-Apr-04 7:49
rkvs20-Apr-04 7:49 
GeneralFailed in calling Manged Method from Unmanged code Pin
sanjay.attri20-Apr-04 1:33
sanjay.attri20-Apr-04 1:33 
GeneralTry to make a Manged project in C++ 2003 Pin
Harry200419-Apr-04 16:06
Harry200419-Apr-04 16:06 
GeneralLNK2022 metadata inconsistent Pin
mattknowles719-Apr-04 13:15
mattknowles719-Apr-04 13:15 
Confused | :confused: I have two projects, one unmanaged. The other is managed using stl lists of classes declared in the unmanaged project. When building the unmanaged project, anywhere the lists are used produces these linker errors.
MotionTimelineControl.obj : error LNK2022: metadata operation failed (80131187) : Inconsistent method declarations in duplicated types (types: tools.thoth.MotionEventController; methods: .ctor): (0x06000013).
MotionTimelineControl.obj : error LNK2022: metadata operation failed (80131187) : Inconsistent method declarations in duplicated types (types: tools.thoth.MotionEventController; methods: load): (0x06000017).
MotionTimelineControl.obj : error LNK2022: metadata operation failed (80131187) : Inconsistent method declarations in duplicated types (types: tools.thoth.MotionEventController; methods: getEventItr): (0x06000022).
MotionTimelineControl.obj : error LNK2022: metadata operation failed (80131188) : Inconsistent field declarations in duplicated types (types: tools.thoth.MotionEventController; fields: m_event): (0x04000011).

tools.thoth.MotionEventController, uses lists of classes from the unmanaged project, and MotionTimelineControl.obj is from a class that takes a MotionEventController as an argument to two methods.

The only solution i have found to get around the linker error is in the unmanaged project is to create a class that is not used (the constructor is private), with public stl lists with the classes used in the managed project. i.e. (MotionTimeLineEvent is a class declared in the unmanaged project.)
if the managed project uses
void doFunc(list<motiontimelineevent>::iterator iter);
then declaring a public variable in the unused class:
list<motiontimelineevent>::iterator m_iter;
would clear up any linker errors having to do with lists of MotionTimelineEvents.

if anyone has any clue on how to resolve the inconsistent metadata, please throw me a bone, i have tried most available solutions but, any suggestions would be greatly appreciated.
GeneralSystem.MemoryException Pin
BlackDice19-Apr-04 4:44
BlackDice19-Apr-04 4:44 
GeneralScaling drawings Pin
AnsGe19-Apr-04 3:08
AnsGe19-Apr-04 3:08 
Generaltimer in C++ Pin
Karthik Ram16-Apr-04 21:27
Karthik Ram16-Apr-04 21:27 
GeneralRe: timer in C++ Pin
Michael Mac17-Apr-04 4:02
Michael Mac17-Apr-04 4:02 
GeneralRe: timer in C++ Pin
Karthik Ram17-Apr-04 6:44
Karthik Ram17-Apr-04 6:44 
GeneralRe: timer in C++ Pin
Michael Mac17-Apr-04 22:40
Michael Mac17-Apr-04 22:40 
GeneralRe: timer in C++ Pin
dev_chandok29-Apr-04 22:21
dev_chandok29-Apr-04 22:21 
GeneralNeed urgent C++ help Pin
Psylo15-Apr-04 10:16
Psylo15-Apr-04 10:16 
GeneralRe: Need urgent C++ help Pin
Jitendra gangwar26-Apr-04 1:42
Jitendra gangwar26-Apr-04 1:42 
GeneralCombo box problem Pin
Martin McCready15-Apr-04 4:24
Martin McCready15-Apr-04 4:24 
GeneralRe: Combo box problem Pin
User 91483318-Apr-04 13:09
User 91483318-Apr-04 13:09 
Questionhow to fix this error?? Pin
don7cry14-Apr-04 16:03
don7cry14-Apr-04 16:03 
GeneralFrom managed Object* to unmanaged IUnknown Pin
Member 78199113-Apr-04 13:26
Member 78199113-Apr-04 13:26 
GeneralRe: From managed Object* to unmanaged IUnknown Pin
ian mariano25-Apr-04 14:13
ian mariano25-Apr-04 14:13 
GeneralCRC32 Pin
Member 10035669-Apr-04 20:59
Member 10035669-Apr-04 20:59 
GeneralRe: CRC32 Pin
Mikko Puonti9-Apr-04 23:15
Mikko Puonti9-Apr-04 23:15 
GeneralRe: CRC32 Pin
Anonymous10-Apr-04 4:50
Anonymous10-Apr-04 4:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.