| |

VerySource

 Forgot password?
 Register
Search
View: 841|Reply: 8

How to solve the too large exe file in C # for winform program, thank you

[Copy link]

1

Threads

7

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-2-18 00:00:01
| Show all posts |Read mode
I made a winform program in C #, but the exe file is too large, and some function calls need to be removed. In vc, dll files are used. What about C #? ? What to do. How to deal with such problems in general project development.
Reply

Use magic Report

0

Threads

15

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-4-21 21:00:01
| Show all posts
It is estimated that the resource files will be reduced a lot.
No 30-50M is not too big ..
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-4-21 23:30:01
| Show all posts
Upstairs is right, this is the style of integrating Microsoft and JAVA.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-4-23 21:45:02
| Show all posts
1. Don't compile the program with images, but load it at runtime.
2. The resource file is made into an external resource file and is only called when it is used.
3. The functions with similar functions are centralized to make a DLL, which is called when the main program is used.
4. Do more function modules in the form of functions. When the program does not appear the second same code segment, do not simply copy the code segment.
5. Streamline code (requires programming skills).
.........

It is not normal for a program to have dozens of M after compilation.
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-4-24 14:45:01
| Show all posts
Have you packaged FrameWork?
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-4-24 19:30:01
| Show all posts
Basically the same as above
Reply

Use magic Report

1

Threads

7

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-5-7 18:45:02
| Show all posts
Is C # calling the self-generated dll the same as calling winapi's dll method?
Reply

Use magic Report

0

Threads

9

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 Invalid IP Address

Post time: 2020-5-8 16:15:02
| Show all posts
It is classified into different dlls by function, and the calling method is very simple.
Reply

Use magic Report

0

Threads

9

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-5-8 20:15:02
| Show all posts
After compiling into a dll, add it directly in the reference and you can call 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