| |

VerySource

 Forgot password?
 Register
Search
View: 3932|Reply: 20

Is it more efficient to write programs with pure API than to write programs with MFC?

[Copy link]

1

Threads

15

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 China

Post time: 2020-2-17 19:00:01
| Show all posts |Read mode
How much is the difference?
Because the algorithm of what is written now is more complex, I hope to improve the efficiency of software operation as much as possible, but the development with api will definitely increase the difficulty of development, the mfc or api?
Reply

Use magic Report

0

Threads

59

Posts

43.00

Credits

Newbie

Rank: 1

Credits
43.00

 China

Post time: 2020-4-20 23:15:01
| Show all posts
MFC does not affect your algorithm speed. High-performance programs are generally written using service or consle applications, that is, applications without interfaces.MFC just builds a framework for you. The details of the lock must be handled by yourself.
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-4-21 12:15:02
| Show all posts
I feel that the API should be clearer in the process of writing. MFC has already encapsulated it. Of course, it may encapsulate something you do n’t want. You can also encapsulate it yourself, or more directly, call the API directly, which is called the pure API To write.
Reply

Use magic Report

0

Threads

30

Posts

22.00

Credits

Newbie

Rank: 1

Credits
22.00

 China

Post time: 2020-4-22 19:45:01
| Show all posts
Of course it is MFC, considering the size and maintainability of software engineering.
Reply

Use magic Report

0

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-4-25 07:15:01
| Show all posts
Performance is still likely to improve bit by bit
Reply

Use magic Report

0

Threads

13

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-5-17 20:45:02
| Show all posts
Under the current hardware conditions, the difference is not too big.
Reply

Use magic Report

0

Threads

22

Posts

18.00

Credits

Newbie

Rank: 1

Credits
18.00

 Invalid IP Address

Post time: 2020-5-18 14:30:01
| Show all posts
For most application requirements, there is no absolute difference between the two, there is a relative difference, but it is no longer what users need to pay attention to.
But in the field of algorithms and relatively low-level fields, the advantages of APIs are still obvious.
For the development of general classes, MFC is sufficient, and the models are more complicated. Generally, they are mixed with VC and other application development platforms. At this time, APIs are used more, such as communication, COM, and Internet
Reply

Use magic Report

0

Threads

57

Posts

27.00

Credits

Newbie

Rank: 1

Credits
27.00

 China

Post time: 2020-5-19 09:30:01
| Show all posts
At the current hardware level, the bottleneck of the program will not appear on the application framework
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-5-20 21:00:01
| Show all posts
LZ used WINAPI not ...
Write it yourself ... that would be dead ...
In the same sentence in MFC, writing in WINAPI is a long paragraph of elders and elders ...
Reply

Use magic Report

0

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-5-21 15:15:01
| Show all posts
Same thing ~~~
It's just that there is no restriction on class inheritance in MFC, but MFC is well packaged
How convenient is it!
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list