在另一个DLL工作区中使用一个工作区中的变量. [英] Using variables from one workspace in another DLL workspace.
问题描述
我可以在另一个DLL工作空间中使用一个工作空间的变量吗?
例如,我已经有一个名为"Excl"的exe工作区.这个"Excl"工作区有一个名为"SerialCom"的类,我想为其创建一个DLL.此类"SerialCom"类使用其他"类中的一些变量.我的问题是,如果要为此"SerialCom"类创建一个单独的DLL,是否可以在此DLL工作空间中使用其他变量frm"Excl"工作空间?如果是这样,我该怎么办?
请帮忙!!
问候,
Ramya
Hi,
Can I use variable of one workspace in another DLL workspace?
For example, I already have a exe workspace named ''Excl''. This ''Excl'' workspace has a class named ''SerialCom'' for which I want to create a DLL. This ''SerialCom'' class uses some variables from other classes of ''Excl''. My question is, if I''m creating a separate DLL for this ''SerialCom'' class, can I use the other variables frm ''Excl'' workspace in this DLL workspace? If so, how do I do it?
Help please!!
Regards,
Ramya
推荐答案
如果您的变量存在于单独的命名空间中,则只需为该命名空间设置范围,并假设其他所有条件都可以将变量置于范围内.
If your variables exist in a seperate namespace, you just need to scope that namespace, assuming everything else is in place to put your variables into scope.
这篇关于在另一个DLL工作区中使用一个工作区中的变量.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!