Infinity Blue

Please post all your completed software applications in here. This is for full software which you have created and wish to release and share with everyone.
13 posts Page 2 of 2
Contributors
User avatar
Shim
VIP - Donator
VIP - Donator
Posts: 882
Joined: Wed Dec 14, 2011 5:02 am

Re: Infinity Blue
Shim
RunarM wrote:
I have tried coding in C# and I didn't see any advantages - you have to write a million curly brackets and end with ;
yes i know but you know we can do many ;; many things in c# that cannot be done in vb.net
Find my programs on Softpedia
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1891
Joined: Wed Dec 16, 2009 9:56 pm

Re: Infinity Blue
zachman61
RunarM wrote:
I have tried coding in C# and I didn't see any advantages - you have to write a million curly brackets and end with ;
Which is what nearly all programming languages do.
Also you can use pointers in C#.

Also #CodenStuff is it possible to use this with a C# project? I'm sure it is but haven't checked.
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
Shim
VIP - Donator
VIP - Donator
Posts: 882
Joined: Wed Dec 14, 2011 5:02 am

Re: Infinity Blue
Shim
zachman61 wrote:
RunarM wrote:
I have tried coding in C# and I didn't see any advantages - you have to write a million curly brackets and end with ;
Which is what nearly all programming languages do.
Also you can use pointers in C#.

Also #CodenStuff is it possible to use this with a C# project? I'm sure it is but haven't checked.
yes it is possible
Code: Select all

        private void Form1_Load(object sender, EventArgs e)
        {
      
   try {
      string MyAppName = "AppName.exe";
      string url = "http://www.YOURSITE.com/Files/" + "FileUpdates371.php";
      HttpWebRequest pageRequest = (HttpWebRequest)WebRequest.Create(url);
      WebResponse pageResponse = pageRequest.GetResponse();
      string filelist = null;
      string Mainlist = null;
      using (StreamReader r = new StreamReader(pageResponse.GetResponseStream())) {
         filelist = r.ReadToEnd;
         if (!IO.File.Exists(Application.StartupPath + "\\" + "Updates")) {
            IO.File.WriteAllText(Application.StartupPath + "\\" + "Updates", filelist);
         }
         StreamReader sr = new StreamReader(Application.StartupPath + "\\" + "Updates");
         Mainlist = sr.ReadToEnd;
         string[] FileLines = filelist.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);
         string[] MainLines = Mainlist.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);
         Button1.Text = FileLines.Length + ".." + MainLines.Length;
         if (!(Mainlist == filelist) & !(FileLines.Length < MainLines.Length)) {
            Interaction.MsgBox(FileLines.Except(MainLines).Count);
            DialogResult answer = default(DialogResult);
            answer = MessageBox.Show("An update is available. Would you like to update now?", "Software Updates", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
            if (answer == Constants.vbYes) {
               Process App = new Process();
               App.StartInfo.FileName = Application.StartupPath + "\\" + "InfinityBlue.exe";
               App.StartInfo.Arguments = "Update|" + MyAppName + "|" + url;
               App.Start();
               this.Close();
            }
         }
      }
      if (My.Computer.FileSystem.FileExists(Application.StartupPath + "\\" + "InfinityBlueUpdate.exe")) {
         My.Computer.FileSystem.DeleteFile(Application.StartupPath + "\\" + "InfinityBlue.exe", FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently);
         My.Computer.FileSystem.RenameFile(Application.StartupPath + "\\" + "InfinityBlueUpdate.exe", "InfinityBlue.exe");
      }
   } catch (Exception ex) {
   }


}

Find my programs on Softpedia
13 posts Page 2 of 2
Return to “Full Software”