| |

VerySource

 Forgot password?
 Register
Search
Author: 永恒之骑士

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

[Copy link]

0

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-5-21 19:45:01
| Show all posts
See how well you master the API.

SDK API experience: (The following time and views are for reference only)
  In 1 ~ 2 years, SDK API <MFC. Because inappropriate APIs are often used in incorrect situations, API performance is difficult to reflect.
  In 2 ~ 5 years, SDK API is basically equivalent to MFC. Depending on the field, each has its own advantages.
  More than 5 years, API> MFC. The SDK API is preferred, including larger-scale applications. If you have higher performance requirements, you can directly switch to 32-bit assembly programming. Even if the assembly language is 0-based, there is basically no obstacle in the process of transferring assembly language. About 1 to 2 weeks is enough.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 Invalid IP Address

Post time: 2020-5-26 10:15:01
| Show all posts
Can be directly transferred to 32-bit assembly programming, even if the assembly language is 0-based, there is basically no obstacle in the process of transferring assembly language, about 1 to 2 weeks is enough.
================================================== ===============================
Upstairs
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-6-1 11:00:01
| Show all posts
Because win32 assembly also adjusts winapi
Reply

Use magic Report

0

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-6-3 22:15:01
| Show all posts
I know that using Stream I/O to access files is up to N times faster than Files I/O, but I didn’t find Stream I/O version of CFile in MFC
Reply

Use magic Report

0

Threads

57

Posts

27.00

Credits

Newbie

Rank: 1

Credits
27.00

 China

Post time: 2020-7-25 01:45:01
| Show all posts
Using MFC as the application framework does not prevent you from using STL or SDK-based APIs, such as LS. Isn't it possible to use STL streams in MFC?
Reply

Use magic Report

0

Threads

57

Posts

27.00

Credits

Newbie

Rank: 1

Credits
27.00

 China

Post time: 2020-7-25 09:00:02
| Show all posts
I really don’t know why some people always take MFC efficiency as a problem. The efficiency of a normal Windows C++ program will never be reduced by using MFC. You can use MFC only as the interface of the program, and the data part is the program. The key to efficiency, such as some large-scale 3D games, may also use MFC. The program is dead, people are alive, using the MFC framework, do you only use afxtempl when you need a container, not std::vector std::list..., do you have to use CString, and Can't use std::string std::wstring?
Reply

Use magic Report

0

Threads

9

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-7-25 17:45:01
| Show all posts
Use the API logic structure to be clearer. If I were you, I like the way the console works with the API.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-25 20:45:01
| Show all posts
CStdioFile is directly encapsulated by CStream IO, right?
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-7-25 21:45:01
| Show all posts
This is not necessarily true, it depends on the level of the code writer
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-7-25 23:15:01
| Show all posts
It depends on the level of the developer!
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