MFC Novice Questions 70, MFC Novice Questions

Updated on technology 2024-05-27
11 answers
  1. Anonymous users2024-02-11

    char szfilepathname[max_path+1];

    dragqueryfile(hdropinfo, 0xffffffff, null, 0);

    dragqueryfile(hdropinfo, nindex, szfilepathname, max_path);

    getdlgitem(id_edit)->setwindowtext(szfilepathname);

    bst_checked==;Selected.

    bst_unchecked==;Not checked.

    caboutdlg dlgabout;

    To set it to multiple lines, then select Auto Hscroll and you're good to go.

  2. Anonymous users2024-02-10

    To set it to multiple lines, then select Auto Vscroll to do it.

  3. Anonymous users2024-02-09

    The point is that I haven't studied MFC, and now I'm learning C++, and it is estimated that I can read C++ in 20 days at most.

    Although it is flawed, the flexibility is okay. It is recommended to learn and improve efficiency. Follow-up:

    Isn't it that MFC is not flexible, it is all good for you, basically copied, and it is very bad to write the underlying one.

    Using MFC will reduce your workload, excellent programmers do not remember coding, often those who remember coding delay their work efficiency, MFC is also a C++ library, excellent senior programmers will definitely use MFC. Follow-up:

    In other words, MFC is still worth learning.

    It's not rubbish as Liang Zhaoxin said, it's almost the same as VB.

    No language can be described as "garbage", because after all, it is a summary of people, and no one can arbitrarily deny the value of affirming a language, because they are all useful.

    My friend also mentioned before, in addition to being a class library, MFC is also a framework, you should have tried, in VC++ to create a new MFC project, the development environment will automatically help you generate a lot of files, and it uses the version, because he encapsulates the MFC kernel, so you can't see the message loop and other things in the original SDK programming in your **, because the MFC framework helps you encapsulate, so that you can concentrate on thinking about the logic of your program, It's not these things that have to be repeated every time it's programmed, but because it's a general framework, there's no best targeting, and of course it's lost some flexibility and efficiency, but MFC's packaging is very shallow, so there's not much loss in efficiency, and it's okay to be flexible, although there are also a lot of flaws, but it's still a better thing. Questioner's Comments: I still can't appreciate that all languages are the same.

  4. Anonymous users2024-02-08

    MFC: Microsoft Foundation Class Library.

    The most important and basic concept of MFC is classes, which encapsulate most of the content in the Windows programming specification into various classes to improve programming efficiency.

  5. Anonymous users2024-02-07

    In the same way, I was like this when I first started, I was confused, and there was no logic at all. The main reason for this is that Microsoft does not encapsulate MFC well. Here we will not talk about Lu Rushou. I would like to make two suggestions:

    1。If possible, it is recommended to use Qt Creator for C++ program development, which is easy to understand for encapsulating interface-related functions. However, the disadvantage is that the efficiency will be about 15% lower than that of MFC.

    2。If you insist on MFC, it is more practice and more thinking, Mr. Hou Jie's book is still very classic, it is recommended to read more and think more, and you will definitely succeed if you persist.

    In the end, I admire you very much, I started MFC in high school, and I didn't start studying until I went to graduate school, which is very embarrassing.

  6. Anonymous users2024-02-06

    I was also self-taught, and I took a lot of detours because I had no one to guide me, and I could learn from each other if I wanted to.

  7. Anonymous users2024-02-05

    I'm also self-taught.,All the way by touching the cherry blossom god crawling and rolling.,It's really hard But it's finally into the rock gate If you want my learning to slow down the royal route,You can send me a private message to leave QQ.,I'll add.,It's not convenient to send it here.

  8. Anonymous users2024-02-04

    3 All MFC is a graphical interface library from Microsoft, which is a library that recapsulates the API of the system in C++.

    Microsoft's APIs are all written in C, and if you know C, you should know that the functions written in process-oriented languages are global and can be used at any time. However, in process-oriented languages, only objects can call their own internal member functions, for example, class A objects cannot call member functions of class B objects.

    For low-level development, the process-oriented language is more flexible and not limited by objects. However, if you want to make a large software, the relationship between objects and functions will be chaotic, inconvenient to manage and use, and the development efficiency will be relatively inefficient. It can be said that today's software is basically based on object-oriented language.

    It is for this reason that Microsoft has re-encapsulated the API into a third-party library using the features of C++. The process-oriented library was converted into an object-oriented library, and the development burden was greatly reduced by adding some reusable frameworks. But because it is a shallow encapsulation, simply put, it is encapsulated into a C++ class, and then the members of this class indirectly call these functions, so there are some more complex things, and in the end we have to go back to the problem of these APIs.

    If you just want to use it, just learn MFC, understand the MFC framework, and you can write some good graphical interface software. But if you want to go deeper and make a graphical interface software better and more perfect, you must go back to the learning of APIs, understand the principles of Windows programs, call mechanisms, etc., MFC mainly learns a reusable framework.

    You don't need to know the API itself, you need to understand the working mechanism of the API, and the functions of the API can be found on MSDN, so there is no need to remember what the API does.

    If you want to learn MFC well, it is recommended that you first read "Windows Programming (Fifth Edition)" to understand the principles of Windows programming. The author of this book is a core employee of Microsoft, and the analysis of Windows programming is very unique, and this book is called the bible of Windows programming. But it's a pity that the author has thrown himself into the arms of C, and it hasn't been updated for more than ten years, but the core principle of Windows has remained the same.

    After reading this, you can start reading books about MFC, and it is recommended to read "MFC in Plain Terms". If you read the previous book, you will find that the first time I talked about the principles of Windows programming, it was all in the door-to-door book.

    However, MFC is based on C++, if you don't know much about C++ class mechanisms (inheritance, virtual functions, etc.), don't learn MFC for the time being, go and familiarize yourself with the basics of C++ before you come. MFC makes a lot of use of these features, especially virtual functions and so on. If you don't have a solid foundation, it's easy to get dizzy.

  9. Anonymous users2024-02-03

    It's such a question, hehe. To put it simply, first understand the operating mechanism of the Windows operating system, and then learn the API function, but don't be obsessed with the learning of the API function, because Microsoft provides more than a thousand API functions, and you can't learn it all, just learn about it and learn those commonly used. How does it have nothing to do with MFC when you say so much?

    Do you want to ask? Hehe. The next thing is MFC, because the programming idea of MFC is the same as the idea of changing an API program.

    It is programmed according to the operating mechanism of the Windows operating system, but the API functions are encapsulated in various classes. So if you have an understanding of API functions and programming, then learning MFC is much clearer. Don't be too obsessed with the details when learning MFC, and learn it in general first, because if you have to study it in detail, you will collapse.

    If you know the approximate order in which MFC runs, know which function is called from which function, and what the function is about. Then let's move on, what to graph, database programming, threading, and so on. Once you get started, you're on your own!!

  10. Anonymous users2024-02-02

    MFC is a library provided by Microsoft that encapsulates Windows APIs in the form of C++ classes and includes an application framework to reduce the workload of application developers. It contains a large number of Windows handle encapsulation classes and many Windows built-in controls and component encapsulation classes.

  11. Anonymous users2024-02-01

    To put it simply, MFC is a set of libraries that Microsoft encapsulates the Windows API, simplifying the Windows development process, and of course the language is C++Just learn and learn.

Related questions
21 answers2024-05-27

Loop reads. cstring str, strcnt, strtemp;

int num= 0; >>>More

18 answers2024-05-27

Whether you are in English or not.

These dialog classes are titled programs or a single document program, which appear by clicking on the menu above. >>>More

22 answers2024-05-27

It depends on personal wishes.,If you're level, you can practice slowly.,See if you want to play output or support.,It's scary if it's like Mumu assisted.,Generally, ranking will prohibit group control like Mumu.。 And Teemo and the small cannon,It's a bit of an output.,Timo looks at whether you're going to play AD or AP.,Non-mainstream AP.,The responsibility is to fill the map with mushrooms.,And the small cannon.,It depends on your skills.,It's easy to pit if the big spray is not good.。。 >>>More

8 answers2024-05-27

Remember one sentence, don't be too ordinary and popular. >>>More

20 answers2024-05-27

The key is to look at your budget, see what you want to enter is an entry-level SLR, I recommend you 600D SLR, but there is certainly no need to go on the red circle of 17 40 is too wasteful. A head is more expensive than your machine, if you are 60d then you can also consider this head. But 17 40 is a wide angle, which is not very suitable for shooting people, and there will be distortion. >>>More