المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to implement IClassFactory2 in C# library?



C# Programming
03-30-2009, 11:12 AM
I created a dll, and need support licensing.

now, i import IClassFactory2 interface,see:
http://www.pinvoke.net/default.aspx/Interfaces/IClassFactory2.html[^ (http://www.pinvoke.net/default.aspx/Interfaces/IClassFactory2.html)]


then use it in class:
public class HelloWorld: System.Windows.Forms.Control,IClassFactory2

please, how to realize this IClassFactory2?
and should i call procedure in HelloWorld create procedure?