MFC C ++新手在VS2010中创建一个简单的输入/输出程序 [英] MFC C++ Newbie Creating a simple input/output program in VS2010

查看:138
本文介绍了MFC C ++新手在VS2010中创建一个简单的输入/输出程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Windows编程的新手.我想创建一个简单的程序来获取用户名,将其存储,然后在VS2010 C ++中使用SDI或MDI MFC应用程序将其显示.我认为一旦掌握了控制Windows的基本知识,便可以起飞.我希望:-)

我搜索了MSDN和其他网站,试图找到一个MFC示例,该示例将向我确切显示该怎么做.我想创建一个类,例如,类名",人",电话",电子邮件"等...作为成员,然后填充成员,将它们存储在文档中并在屏幕上显示它们.我只需要一些帮助,即可将我的代码放在正确的位置.我可以使用C ++,C#,Basic,VB,COBOL来完成所有这些工作,但是当我使用VS2010在Windows中创建MFC项目时,我却迷失了所有Windows语言.我想我要问的是,在ProgramDoc.cpp,ProgramView.cpp和头文件中需要什么?

Hi, I''m new to Windows programming. I would like to create a simple program to get a users name, store it and then display it using an SDI or MDI MFC app in VS2010 C++. I think once I get the basics of controlling Windows down then I can take off. I HOPE :-)

I have searched MSDN and other web sites trying to find a MFC example that would show me exactly what to do. I want to create a class, for example, class Person with Name, Phone, Email, etc...as members then populate the members, store them in a document and display them on the screen. I just need some help putting my code in the right places. I can do all of this with C++, C#, Basic, VB, COBOL, but when I create a MFC project in Windows using VS2010 I get lost in all the Windows verbage. I guess what I''m asking is, what do I need in the ProgramDoc.cpp, ProgramView.cpp and header files? Sorry in advance for being ignorant and long winded.

推荐答案

如果您有购买的Visual Studio版本的副本,则可以通过以下方式轻松创建功能齐全的MFC程序:新项目向导.在 MSDN [
If you have a copy of the purchased version of Visual Studio you can easily create a fully functional MFC program from the new project wizard. There are also many samples to be found on the MSDN[^] web site.


这篇关于MFC C ++新手在VS2010中创建一个简单的输入/输出程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆