Author | Message | Time |
---|---|---|
Killer360 | Hi, I just had a few quick questions. I'm a complete NOOB at programming, I have NO idea. I've heard about this board several times and I thought it would be a good place to start. I had an idea today to make a Hash Downloader program. I've got this far: [img]http://xs107.xs.to/xs107/06402/vb.jpg[/img] I know, it's not far at all. I would like to make an installer that will install the program and also make a directory on the persons computer: C:\HASHES . Then when the person clicks on the button, it will download the file from my server to that directory automatically. But how do I use File Transfer? :) If you can give any help, that wold be great. I think my friend can probably help me out with the installer. | October 2, 2006, 11:02 PM |
Topaz | HTTP file transfer? | October 2, 2006, 11:09 PM |
Killer360 | Yes. | October 2, 2006, 11:09 PM |
K | You can use the System.Net.WebClient class. | October 2, 2006, 11:55 PM |
Killer360 | Ok, How do I add that line? Which tab do I click on? Also, can I add a status bar line so it will show how much the file has downloaded? This is where I'm at: [img]http://img87.imageshack.us/img87/7444/vb1my6.th.jpg[/img] | October 3, 2006, 12:14 AM |
Spilled[DW] | Not very far eh? lol. | October 3, 2006, 12:30 AM |
Killer360 | [quote author=Spilled link=topic=15816.msg159318#msg159318 date=1159835447] Not very far eh? lol. [/quote] Not at all. :) First day. :-\ :'( | October 3, 2006, 1:37 AM |
FrostWraith | Check this out as well. http://www.codeguru.com/vb/gen/vb_graphics/fileformats/article.php/c6743 | October 3, 2006, 1:43 AM |
MyStiCaL | Suggestion, Don't come asking for help on somthing more advanced when you don't even know how to use the Button CLICK method im sure. Atleast take a few months, learn the programming language your using, do some searching on www.pscode.com & www.google.com P.S. ATLEAST DO A HELLO WORLD EXPAMPLE. =| | October 3, 2006, 1:43 AM |
l2k-Shadow | [quote author=Killer360 link=topic=15816.msg159316#msg159316 date=1159834463] Ok, How do I add that line? Which tab do I click on? Also, can I add a status bar line so it will show how much the file has downloaded? This is where I'm at: [img]http://img87.imageshack.us/img87/7444/vb1my6.th.jpg[/img] [/quote] lmao >> http://www.dummies.com/WileyCDA/DummiesTitle/productCd-076457728X.html Here is the thing.. when beginning to program don't try to make a program that may be even remotely difficult to make, you won't succeed. Do a "Hello world", proceed to a calculator, and some other simplistic programs to get a little hang of the language before you even attempt making something that requires the internet. For some reason a lot of people think along these lines "omg where can i dl VB? I wanna make a bot!". Well even though it's Visual Basic it is still a programming language and has to be learned to be programmed in. So to sum it up it's awesome that you wish to learn how to program but read a tutorial and start with something more simple first. | October 3, 2006, 2:38 AM |
JoeTheOdd | I still can't program a calculator in VB without much effort, other than simple four-function that can work with only two values. After that it gets quite hard to find the next operation, position wise. | October 3, 2006, 3:20 AM |
RealityRipple | Uhm... VBScript.Eval strEquation FTW. | October 3, 2006, 3:40 AM |
MyStiCaL | weird, I bet i couldn't even do a calculator lol.. | October 3, 2006, 3:52 AM |
JoeTheOdd | [quote author=RealityRipple link=topic=15816.msg159347#msg159347 date=1159846817] Uhm... VBScript.Eval strEquation FTW. [/quote] Bad coding habits, to rely on a control to do your programs core function (remember, that's like CSB!), especially when the library isn't designed for it anyhow. :) | October 3, 2006, 12:03 PM |
Killer360 | Hmm, I'll look at some tutorials on the microsoft website for more information.. Thanks. :) | October 3, 2006, 12:32 PM |
K | [quote author=Joe[x86] link=topic=15816.msg159344#msg159344 date=1159845640] I still can't program a calculator in VB without much effort, other than simple four-function that can work with only two values. After that it gets quite hard to find the next operation, position wise. [/quote] Convert the equation from infix to postfix. Go through each token from left to right. If the token is a number, push it onto a stack. If the token is an binary operator, pull two values from the stack and evaluate. push the result back onto the stack. Continue until you have run through each token. If the equation was valid, there will be only one result left on the stack. This approach is simpler than constructing a parse tree, but it has some limitations. It is difficult to account for unary operators such as a negative sign or a factorial operator when converting from infix to postfix. | October 3, 2006, 8:02 PM |
Zer0 | here is the easiest way to do it..... or so i think [code] hashStatus.Text = "Downloading..." Dim wc As New System.Net.WebClient() wc.DownloadFile("http://www.allieszer0.com/hash/star/starcraft.exe", _ App_Path() + "/star/starcraft.exe") wc.DownloadFile("http://www.allieszer0.com/hash/star/battle.snp", _ App_Path() + "/star/battle.snp") wc.DownloadFile("http://www.allieszer0.com/hash/star/storm.dll", _ App_Path() + "/star/storm.dll") hashStatus.Text = "Done SC..." [/code] | October 4, 2006, 4:47 AM |