Zhenwei Wu

Results 18 comments of Zhenwei Wu

There has been many other proposals, especially related to member visibility, that has been rejected due to > Language proposals which prevent specific syntax from occurring can be achieved with...

Honestly I like this feature, because it can solve many scenarios that two or more closely related classes need to access internals of each other, while preventing those to be...

> Methods imply state mutation as opposed to declarative construction. This doesn't make sense to me. I agree that methods imply state mutation, but state mutaion is NOT opposed to...

> I disagree. I think we do Then what is the reason to allow general compound assignment, instead of just subscribing events, in object initializer? As I said, I agree...

感谢留言。 这个项目并不是打算提供开包即用的OLE功能,它只是一个很简单的小例子,用来实现复制可以在Word里渲染的OLE对象的功能,所以应该是做不到双击编辑操作的。 想要双击编辑应该要重写Main函数然后在操作系统里注册COM对象ID和你的程序,具体的方法我现在不太记得了,如果你有需要我可以周末确认一下。你有兴趣的话也可以去研究一下VC++里的MFC框架,OLE功能实现最完善的就是MFC框架了。

I found an old book _INSIDE OLE 2_, published by Microsoft in 1994. I think I can try to write a working example, but it will take me some time,...

.NET can do almost everything that C++ does. Also COM interop is one of the features of .NET since its first version. So what I talked about are all for...

可以弄个demo,但是不一定很快完成。 可以大概问一下你打算拿来做什么吗?是个人项目吗?