Hello everyone, I have developed a COM component using C++. And I need to invoke some functions in another DLL which is implemented in C#. I am wondering whether there are any tutorials or samples of how to do this correctly and safely? I have this question because I noticed that the data types in C++ and C# are not the same -- how to make them compatible? This is the most of my concern. thanks in advance, George
Try these: http://msdn2.microsoft.com/en-us/library/zsfww439.aspx http://msdn.microsoft.com/msdnmag/issues/01/05/com/ http://msdn2.microsoft.com/en-us/library/zah6xy75(VS.80).aspx http://www.codeproject.com/csharp/EssentialPInvoke.asp Does that give you what you need?
Hi carl_bevil, "carl_bevil@yahoo.com" wrote: > Try these: > > http://msdn2.microsoft.com/en-us/library/zsfww439.aspx > http://msdn.microsoft.com/msdnmag/issues/01/05/com/ > http://msdn2.microsoft.com/en-us/library/zah6xy75(VS.80).aspx > http://www.codeproject.com/csharp/EssentialPInvoke.asp > > Does that give you what you need? > > > Good reference! regards, George