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.
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
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
zachman61 wrote:yes it is possibleRunarM 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.
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
Copyright Information
Copyright © Codenstuff.com 2020 - 2023