关于CLR C++语法的简单问题

woncomp 2012-01-18 09:11:23
CLR不允许使用友元,同时又没有internal关键字

那么我包装非托管指针,想要隐藏掉它,有什么样的语法可以实现呢?
...全文
174 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
devmiao 2012-01-26
  • 打赏
  • 举报
回复
原先我也不知道呢。
woncomp 2012-01-26
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 findcaiyzh 的回复:]

就用Private 修饰class的意思就是对Project internal.
修饰成员可以用intenal.

我没试过,参考下面的帖子:
http://bytes.com/topic/net/answers/688638-internal-specifier-c-cli

http://bytes.com/topic/net/answers/701463-can-we-have……
[/Quote]


学习了,原来C++/CLI里有internal关键字。。。。
devmiao 2012-01-24
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 findcaiyzh 的回复:]
就用Private 修饰class的意思就是对Project internal.
修饰成员可以用intenal.

我没试过,参考下面的帖子:
http://bytes.com/topic/net/answers/688638-internal-specifier-c-cli

http://bytes.com/topic/net/answers/701463-can-we-have-……
[/Quote]
学习了。
宝_爸 2012-01-24
  • 打赏
  • 举报
回复
就用Private 修饰class的意思就是对Project internal.
修饰成员可以用intenal.

我没试过,参考下面的帖子:
http://bytes.com/topic/net/answers/688638-internal-specifier-c-cli

http://bytes.com/topic/net/answers/701463-can-we-have-internal-ref-class-c-cli
woncomp 2012-01-24
  • 打赏
  • 举报
回复
这。。没有更加优雅的办法了吗?
devmiao 2012-01-18
  • 打赏
  • 举报
回复
private+反射吧,喵~

7,540

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 VC.NET
社区管理员
  • VC.NET社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧