从外部dll访问对象 [英] To access the object from external dll

查看:87
本文介绍了从外部dll访问对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在主项目(prjMain.sln)中创建一个类(clsTest.cls).
我在外部其他项目(prjExtn.sln)中创建了一个相同的类名(clsTest.cls)并重建它.

现在,我在主项目中添加了该.dll文件的引用.
但是在智能窗口中显示了主clsTest.cls的对象,而在智能窗口中未显示外部对象.

有什么方法可以显示两个类的对象(即:-Main Project和External dll)????

请帮助我.....

I create a class(clsTest.cls) in my main project(prjMain.sln).
I create a same class name(clsTest.cls) in my external other project(prjExtn.sln) & rebuild it.

Now i add refence that .dll file in my main project.
But there is shown objects of the main clsTest.cls into intellisence windows, not shown the extern objects into the intellisence windows.

Have any ways that we shown the objects of two class(i.e:- Main Project & External dll)????

Please help me.....

推荐答案

使用namespaacename//在代码顶部的外部dll中使用
use using namespaacename //in external dll at thetop of the code


这篇关于从外部dll访问对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆