Đăng Nhập

Vui lòng khai báo chính xác tên truy cập và mật khẩu!

Quên mật khẩu?

    Xem và sửa hộ mình với

      Thành Viên Chính Thức
      TrungPro0709

      Giới tính : Nam

      Tuổi : 26

      Đến từ : HP

      Ngày Tham gia : 03/08/2012

      Tổng số bài gửi : 2

      #1

       Thu Sep 06, 2012 1:57 pm

      mình mới học lập trình và làm ứng dụng cso code như sau
      Code:
      using System;
      using System.Collections.Generic;
      using System.ComponentModel;
      using System.Data;
      using System.Drawing;
      using System.Linq;
      using System.Text;
      using System.Windows.Forms;
      using DevComponents.DotNetBar.Metro;
      using DevComponents.DotNetBar;
      using PES2010_Savedatafolder_Changer.Properties;
      using System.IO;
      using Microsoft.Win32;

      namespace PES2010_Savedatafolder_Changer
      {
          public partial class Form1 : Office2007Form
          {
              public Form1()
              {
                  InitializeComponent();
              }

              private void Form1_Load(object sender, EventArgs e)
              {
                  this.openFileDialog1.Filter = "(pes2010.exe)|pes2010.exe";
                  maskedTextBoxAdv1.Text = Settings.Default.Duongdan;
              }
              private string pesPath()
              {
                  string Path = null;
                  string sKey = @"SOFTWARE\KONAMI\PES2010";

                  RegistryKey key = Registry.LocalMachine.OpenSubKey(sKey);
                  Path += key.GetValue("installdir");

                  return Path;
              }

              private void buttonX1_Click(object sender, EventArgs e)
              {
                  if (this.openFileDialog1.ShowDialog() != DialogResult.Cancel)
                  {
                      this.maskedTextBoxAdv1.Text = this.openFileDialog1.FileName;
                  }
                  Settings.Default.Duongdan = maskedTextBoxAdv1.Text;
                  Settings.Default.Save();
              }

              private void timer1_Tick(object sender, EventArgs e)
              {
                  if (this.Text.Length != 0)
                  {
                      this.Text = this.Text.Substring(1, this.Text.Length - 1);
                  }
                  else
                  {
                      string str = ".:: PES2010 SaveDataFolder Changer BY TrungPro0709 - www.Pes.Vn ::.";
                      Graphics graphics = base.CreateGraphics();
                      while (true)
                      {
                          if (((int)graphics.MeasureString(" " + str, this.Font).Width) > base.Width)
                          {
                              this.Text = str;
                              return;
                          }
                          str = " " + str;
                      }
                  }
              }

              private void buttonX2_Click(object sender, EventArgs e)
              {
                  BinaryReader reader = new BinaryReader(File.Open(this.maskedTextBoxAdv1.Text, FileMode.Open));
                  reader.BaseStream.Position = 0x0E7B489;
                  reader.ReadInt32();
                  reader.ReadString();
                  reader.Close();

                  BinaryWriter writer = new BinaryWriter(File.Open(this.maskedTextBoxAdv1.Text, FileMode.Open));
                  writer.BaseStream.Position = 0xE7B489;
                  writer.Write(this.maskedTextBox1.Text);
                  writer.Close();
              }

              private void checkBoxX2_CheckedChanged(object sender, EventArgs e)
              {
                File.Copy(pesPath() + @"\pes2010.exe" , pesPath() + @"\pes2010.exe.bak" ,true);
              }

              private void textBoxX1_TextChanged(object sender, EventArgs e)
              {

              }
          }
      }
      tool vẫn chay đc nhưng khi apply thì text có thay đổi nhưng
      khi mở hex workshop ra kiểm tra thì text có thay đổi nhưng trc đó luôn hiện 1 dấu chấm ko hiểu
      sao ai biết xem nếu sai ở đâu thì sửa hộ mình
      tsk nhiều
      pic
      trc khi chỉnh bằng tool
      [You must be registered and logged in to see this link.]
      sau khi chỉnh bằng tool
      [You must be registered and logged in to see this link.]
      Thành Viên Chính Thức
      TrungPro0709

      Giới tính : Nam

      Tuổi : 26

      Đến từ : HP

      Ngày Tham gia : 03/08/2012

      Tổng số bài gửi : 2

      #2

       Tue Sep 11, 2012 1:58 pm

      chẳng pro nào giúp vậy