-
If you just make a separate app (instead of engaging in the secondary development of the framework), qt can barely make up the number. Although it is not pure C++ (relying on MOC QML), the overall tools (build tools, designers, IDE integration including VS) are relatively high, and they also support multiple mainstream platforms (Windows, Linux, OS X, etc.), with relaxed license requirements (LGPL), optional commercial support, and relatively low risk for individual APP projects. Although the binary size that needs to be released is still on the large side, it is easier to do than the mainstream web and.
Schemes such as .NET are compact, and controlling the dynamic libraries to be released by yourself (usually some DLLs on Windows, no registration is required) is not too unfriendly for ordinary APP projects to be accepted.
MFC can only be used by Windows.,API design is relatively bad (it's better to direct win32 SDK),The architecture is lackluster, only document-view,Although it's still under maintenance, it's relatively outdated from the beginning.,IDE support is limited to VS (the effect is far less than C project to see M$'s own tendencies)。 Formal development prior to VS 2013 requires a commercial license (VS Express excludes MFC). If it is not a project history** compatibility requirement, it is generally not recommended to consider it.
Other spare tires wxwidgets gtkmm fltk and the like are basically chicken ribs on Windows, not project history baggage (such as porting requirements), do not consider script binding, and do not need to toss. You can go to the itjob website to find relevant information.
-
C++ is a program that works on other computers of the same type. However, this operation is conditional, that is, the runtime library required by the compiled program also exists on the other computer.
If it cannot be run, the running environment of the other computer is inconsistent with the program requirements.
First of all, you need to understand what external resources you need in your program, for example, if you ask to open a file in the program, but the other party does not have this file on the other party's computer, then it is possible that the program will crash and not work properly because the file does not exist.
After that, you can check the version of your VC++ and then install the same VC runtime on the other machine.
If you are using. .NET framework, you also need to install the same as this. .NET runtime.
In addition, the third-party controls or components involved also need to install these corresponding runtimes on the other party's computer.
This is usually done by packaging the installer. It's just that before the package installer is made, you need to manually process these required components.
-
The third-party dependency library is placed in the same path as the exe file, and the corresponding version of the C++ runtime library should be installed on other people's computers.
-
Generally speaking, it's because other people's computers don't have that kind of C++ runtime framework, so they can't be opened.
-
C is a general-purpose computer programming language with a wide range of applications. C is designed to provide a programming language that can compile in a simple way, handle low-level memory, generate a small amount of machine code, and run without any runtime support.
Although C provides many low-level processing functions, it still maintains a good cross-platform characteristic, and C programs written in a standard specification can be compiled on many computer platforms, including some embedded processors (microcontrollers or MCUs) and supercomputers.
The interface is just a window to interact with the user, for example, in MFC, the way to transfer data between the interface and the program is through the update() function, update(false); It is to pass the variable data to the interface, and update(true) is to pass the interface data to the variable. Of course, the premise is that they need to be correlated with each other. In this way, the landlord probably understands the usefulness of the interface.
MFC is developed in C++, and there is still a big difference between C++ and C. It can be very difficult to get started directly. It is recommended that the landlord can read the book of C++ first.
Learn what a class is, what a container is, what an overload is, what a construct is, what a destructor is, and what an object-oriented is. This is not something that can be said in one sentence or two.
I give some advice to the landlord:
-
The reason for this problem.
1.The file is in use, the file is occupied, and the deletion fails. You need to close or exit the program that is using the file, and then delete it.
2.If the NTFS file system is used, the deletion will fail if the current user does not have full control permissions on the target file.
3.If there is a problem with file storage, deletion will fail.
For example, if the USB flash drive is damaged, we can see the file in the explorer, but we can't delete the file.
4.The file is infected by a virus (this is the most common case, and users can use an antivirus software such as Kingsoft Antivirus to clean up the system virus).
-
**The problem is better to get the hint out, I don't understand you with MFC!
-
Use w+b when opening a file stream
1 First of all, click [File] and select [New] to select [C++ Source File] in the file, enter the [File Name] to be created, and select the location of the file to be saved] is [browsing] Knowledge: The shortcut key for [New Deslag Removal File] is [Ctrl+N] 2 Next, you can [write a program] in the newly created file After the writing is completed, click [Compile [File Name]] in [Component (B)] Tips: The file name is as shown in the following figure [Nazhen quietly has a small asterisk, indicating that there is an unsaved part in the file, so at this time, you can press the shortcut key [Ctrl+S] to save the file.
arp packages can be used in ms's platformsdk in ip helper dword sendarp (ipaddr destip, ipaddr srcip, pulong pmacaddr, pulong phyaddrlen); >>>More
Use cmd's timer to shut down.
private void button1_click(object sender, eventargs e) >>>More
Programming is also a technical job, especially when writing efficient programs, how can you learn it in three or five days. >>>More
#include
#define m 5 >>>More