R
rob
I did create a dll A using managed c++. I have no problem using this
dll in a .NET application using c#. I now have another dll B that uses
functionality from the first dll A. When building dll B I get the
following link error:
error LNK2020: unresolved token (060000ff) ....
I then added the project for dll A as a reference (in addition to
System, System.Data, System.Xml) to dll B. But now I get the following
error:
error C2011: 'MyNamespace::MyClass' : 'class' type redefinition
liba.h(60) : error C2011: 'MyNamespace::MyClass' : 'class' type
redefinition liba.dll : see declaration of 'MyNamespace::MyClass'
I do not think liba.h is included twice in project B because I used
pragma once PLUS #ifdefs. Actually, it seems that there is a definition
of my class in liba.h and another one in liba.dll.
In any case, what is the proper way to use functionality from one
managed C++ dll in another managed C++ dll?
Thanks,
Rob
dll in a .NET application using c#. I now have another dll B that uses
functionality from the first dll A. When building dll B I get the
following link error:
error LNK2020: unresolved token (060000ff) ....
I then added the project for dll A as a reference (in addition to
System, System.Data, System.Xml) to dll B. But now I get the following
error:
error C2011: 'MyNamespace::MyClass' : 'class' type redefinition
liba.h(60) : error C2011: 'MyNamespace::MyClass' : 'class' type
redefinition liba.dll : see declaration of 'MyNamespace::MyClass'
I do not think liba.h is included twice in project B because I used
pragma once PLUS #ifdefs. Actually, it seems that there is a definition
of my class in liba.h and another one in liba.dll.
In any case, what is the proper way to use functionality from one
managed C++ dll in another managed C++ dll?
Thanks,
Rob