使用在dll中创建的类 [英] using a class created in a dll
问题描述
我创建了一个包含类(f5notes)的dll.我希望团队能够直接使用该类.目前,我发现最好的方法是创建一个继承f5notes的虚拟类(f5notesxx).
我不想保留第二个构造.
有什么想法吗?
arniec
嗨ArnieC,
实际上,本论坛旨在讨论VS IDE的用法,只是为了清楚地说明此问题:
您使用了哪种开发语言,C#,VC ++或其他语言?
您创建了哪种项目类型?
>>我希望不必保留该二级构造.
您能否向我们分享有关二级构造"的更多信息?这是什么意思?也许您可以向我们分享有关它的主要代码.
此外,如果我们要引用dll文件,则可以将其添加为项目中的引用.或者我们可以将其注册到GAC,因此我们可以直接使用该类.也许这是一个更好的解决方法.
如果我对这个问题有误解,请随时告诉我.
最好的问候,
Jack
I created a dll that contains a class (f5notes) I would like the team to be able to use that class directly.Currently the best I have figured out is to create a dummy class(f5notesxx) that inherits the f5notes.
I would like to not have to keep that secondary construct.
Any ideas ?
arniec
Hi ArnieC,
Actually this forum is to discuss the VS IDE usage, just to make this issue clearly:
Which kind of developing language did you use, C#, VC++ or others?
Which kind of project type did you create?
>>I would like to not have to keep that secondary construct.
Could you share us more information about " secondary construct"? What does it mean? Maybe you could share us the main code about it.
In addition, if we want to refer to a dll file, we could add it as the reference in our project. Or we could register it to the GAC, so we could use the class directly. Maybe it is a better workaround.
If I have misunderstood this issue, please feel free to let me know.
Best Regards,
Jack
这篇关于使用在dll中创建的类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!