简体   繁体   English

MFC是否有任何语言绑定?

[英]Any language binding for MFC?

THere are a lot of wrappers for toolkits like Qt, Cocoa or WxWidgets for D, Python, Ruby and other languages. 这是很多工具包的包装,例如Qt,Cocoa或Dx,Python,Ruby和其他语言的WxWidgets。

I wonder if anyone has ever written a binding for MFC ? 我想知道是否有人曾经为MFC编写过绑定?

MFC不是一种语言,所以我看不到应该(或为什么)应该有这种包装器。

This has been done for python: 这已针对python完成:

Python Programming on Win32 using PythonWin 使用PythonWin在Win32上进行Python编程

Okay i did it. 好吧,我做到了。

Some of the intrinsics of MFC are so dominant that i had to change to API's of my wrapper. MFC的某些内在函数是如此占主导地位,以至于我不得不更改包装器的API。 For example you have to reverse the control flow to get the dialog resource template processing done. 例如,您必须反转控制流才能完成对话框资源模板的处理。

But it works. 但这有效。 And it works fine now. 现在它可以正常工作。

I'm now happy to be able to program and use third party MFC components in Eiffel without message maps and other old weird stuff. 现在,我很高兴能够在Eiffel中编程和使用第三方MFC组件,而没有消息映射和其他古怪的东西。

This is now much better then QT. 现在比QT好得多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM