Using /clr will not make any difference. You will need to convert your
classes into managed classes and its exposed interfaces must expose cls
compliant types, but this could be easy to accomplish or not. I think that
is a good migration path if you don't need backward compatibility.
If you need to ensure backward compatibility it will be a better option ot
make a managed wrapper arround your current code.
If you only expose your component through interop it will be difficult to
use for managed clients. I would prefer any of the others approach.

Signature
Un saludo
Rodrigo Corral González [MVP]
FAQ de microsoft.public.es.vc++
http://rcorral.mvps.org
yaron - 07 Jun 2005 07:50 GMT
Hi Rodrigo,
- Is there any automated process/tool to generate wrapper classes to my
unmanaged c++ dll ?
- When i use the /clr option i get link error LNK2001: unresolved external
symbol "char * __cdecl strdup(char const *)" (?strdup@@$$J0YAPADPBD@Z) .
how should i solved this error ?
Thanks a lot.
Rodrigo Corral [MVP] - 07 Jun 2005 11:25 GMT
> - Is there any automated process/tool to generate wrapper classes to my
> unmanaged c++ dll ?
AFAIK, no there isn´t.
> - When i use the /clr option i get link error LNK2001: unresolved external
http://support.microsoft.com/kb/814472/en-us

Signature
Un saludo
Rodrigo Corral González [MVP]
FAQ de microsoft.public.es.vc++
http://rcorral.mvps.org
yaron - 07 Jun 2005 14:34 GMT
Hi Rodrigo,
What do you think about the swig tool ?
http://www.swig.org/
it generate c# classes and c++ wrappers using PInvoke.
- should i use it ?
Thanks a lot.
Rodrigo Corral [MVP] - 07 Jun 2005 16:21 GMT
I don´t know. I have not used SWIG. You could try it and tell us if it is a
good tool or not.

Signature
Un saludo
Rodrigo Corral González [MVP]
FAQ de microsoft.public.es.vc++
http://rcorral.mvps.org
yaron - 07 Jun 2005 16:39 GMT
ok , i will.
Thanks Rodrigo.
> I don´t know. I have not used SWIG. You could try it and tell us if it is a
> good tool or not.
yaron - 09 Jun 2005 08:33 GMT
Hi Rodrigo,
Is there is any differences in the capabiliies of those 3 approaches IJW,
Manage C++ Wrapper classes or PInvoke, for example if i can use polymorphism
in all the approaches in my C# Client ?
Thanks a lot.