Program.cs 872 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. using System.Windows.Forms;
  7. namespace SheepSheep
  8. {
  9. static class Program
  10. {
  11. /// <summary>
  12. /// 应用程序的主入口点。
  13. /// </summary>
  14. [STAThread]
  15. static void Main()
  16. {
  17. Application.EnableVisualStyles();
  18. Application.SetCompatibleTextRenderingDefault(false);
  19. Application.Run(new Form1());
  20. }
  21. private static void releaseDLL() {
  22. byte[] dll = global::SheepSheep.Properties.Resources.GetTokenFromWechat;
  23. string path = Application.StartupPath + @"\GetTokenFromWechat.dll";
  24. using (FileStream fs = new FileStream(path, FileMode.Create)) {
  25. fs.Write(dll, 0, dll.Length);
  26. }
  27. }
  28. }
  29. }