积极答复者
namespace封装的问题

问题
答案
-
你好,
您说的方法是静态链接的一种。你还可以尝试,右键点击项目,选择引用,来帮助您添加新的链接库。这种方式也可以帮助您,直接调用namespace。
Rob Pan [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 Honny_yeyh 2011年11月1日 4:12
全部回复
-
你好,
您可以直接把您的链接库作为引用,引入到您的工程中。在使用的时候直接使用using namespace XXX 就可以了。这个和您调用其他类库的方法相同。例如using namespace std;
Rob Pan [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
-
你好,
您可以直接把您的链接库作为引用,引入到您的工程中。在使用的时候直接使用using namespace XXX 就可以了。这个和您调用其他类库的方法相同。例如using namespace std;
Rob Pan [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
是不是提供头文件和lib文件,静态链接的方式? -
你好,
您说的方法是静态链接的一种。你还可以尝试,右键点击项目,选择引用,来帮助您添加新的链接库。这种方式也可以帮助您,直接调用namespace。
Rob Pan [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 Honny_yeyh 2011年11月1日 4:12