如何在VC2008中使用MFC进行实际工作
我的背景是C/python/pyqt,并且我被迫使用MFC进行GUI编程(被我的老板强迫,考虑到他将来可以将这个工作分配给其他人)。我遇到了这个问题:
- 如何创建选项卡控件(在互联网上找到了一个解决方案)
- 如何创建表格视图
- 如何使用 json、sqlite 或其他第三方库
- 如何嵌入 Web 浏览器
- 如何使用双缓冲区绘制绘图
- 如何做异常/断言/单元测试/配置文件/
那么有没有一本书或网站收集这方面的内容?
my backgrounds are C/python/pyqt, and I was forced to use MFC for GUI programming(by my boss, in the consideration that he can assign this job to others in the future). and I encountered this problems:
- how to create a tab control (found one solution on internet)
- how to create a table view
- how to use json, sqlite or other third party library
- how to embed a web browser
- how to draw plot by using double buffer
- how to do exception/assert/unittest/profile/
So is there a book or site collect stuff in this subjects?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
包含最多 MFC 内容的网站是 www.codeproject.com。
The website with most MFC stuff is www.codeproject.com.
现在有关 MFC 的书籍还很少。标准著作是由 Jeff Prosise 编写的(使用 MFC 进行 Windows 编程,或者根据您遇到的问题使用 MFC 进行 Windows 95 编程),但该书已绝版。亚马逊有二手副本出售。
无论您使用的是文档和视图还是基于对话框的应用程序,您的问题的答案往往会有所不同。我怀疑制作选项卡控件的最简单方法是将选项卡放入对话框资源中并创建一个 CFormView。与 Web 浏览器相同,尽管 MFC 附带的浏览器控件有点原始,我上次检查时(不过那是几年前)。 SQLite 问题已在本问题中得到解决
Books on MFC are a bit thin on the ground these days. The standard work was by Jeff Prosise (Programming Windows with MFC, or Programming Windows 95 with MFC according to what issue you got) but that's out of print. Amazon has second hand copies for sale.
The answer to your questions tends to vary whether you're using Documents and Views or dialog based applications. I suspect the easiest way to do a tab control would be to put a tab into a dialog resource and create a CFormView. Same with a web browser, though the browser controls that shipped with MFC were a bit primitive, last time I checked (that was a few years ago though). The SQLite issue is addressed in this question