Praveen Reddy
2012-01-12 05:03:25 UTC
Hello All
We are using SWIG to convert C++ code to C#
We need to add additional interfaces (base classes) in the C# code
By default the C# code generated is as follows
MyClass : IDisposable
{
}
Where MyClass is defined in the C++
We need something as shown blow:
MyClass : IDisposable, ICloneable
{
}
So we need the C# classes to have support additional interfaces (e.g.
ICloneable or custom interfaces)
Is it possible? If yes how can it be done?
Thanks and Regards
Praveen Reddy
--------------------------------------------------------------------------
This e-mail, including any attachments, is transmitted for the sole use of the intended recipient and may contain information that may be privileged and confidential. If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, distribution or copying of this e-mail or the information contained herein is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by reply e-mail and then delete the original message from your system. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company.This is your responsibility to ensure this-e-mail and any attachments are virus free. The company accepts no liability for any damage caused by any virus transmitted by this e-mail.
We are using SWIG to convert C++ code to C#
We need to add additional interfaces (base classes) in the C# code
By default the C# code generated is as follows
MyClass : IDisposable
{
}
Where MyClass is defined in the C++
We need something as shown blow:
MyClass : IDisposable, ICloneable
{
}
So we need the C# classes to have support additional interfaces (e.g.
ICloneable or custom interfaces)
Is it possible? If yes how can it be done?
Thanks and Regards
Praveen Reddy
--------------------------------------------------------------------------
This e-mail, including any attachments, is transmitted for the sole use of the intended recipient and may contain information that may be privileged and confidential. If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, distribution or copying of this e-mail or the information contained herein is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by reply e-mail and then delete the original message from your system. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company.This is your responsibility to ensure this-e-mail and any attachments are virus free. The company accepts no liability for any damage caused by any virus transmitted by this e-mail.