|
Are you talking about ESRI Shapefiles? If so, you may want to start here[^].
|
|
|
|
|
hi
I am copying file from USB to my hard drive using vb.net
now after copying i want to verify if copied file is same or not.Is there any way to verify it. or is there any way to generate HASH key of a file in order to verify it. As hash key is unique for every file.
Thanks In Advance.
|
|
|
|
|
sumit7034 wrote: now after copying i want to verify if copied file is same or not.
Read the files and compare the data.
sumit7034 wrote: or is there any way to generate HASH key of a file in order to verify it.
Read the files, create an MD5 hash code from the data, and compare the hash codes. If you are only comparing two files, you don't gain anything, though.
sumit7034 wrote: As hash key is unique for every file.
That is not true, as there is a limited number of hash keys. However, two files that are mostly identical are very unlikely to have the same hash key.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Can u give me sample code how to compare.
Thanks
|
|
|
|
|
Private Function getFileMd5(ByVal filePath As String) As String
' get all the file contents
Try
Dim File() As Byte = System.IO.File.ReadAllBytes(filePath)
' create a new md5 object
Dim Md5 As New Security.Cryptography.MD5CryptoServiceProvider()
Dim byteHash() As Byte = Md5.ComputeHash(File)
Return Convert.ToBase64String(byteHash)
Catch ex As Exception
End Try
End Function
Some Time u Try ur Self
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
|
sumit7034 wrote: Can u give me sample code how to compare.
I could, but I would just be pasting code from examples that already exist.
What is it with the code that you have problems with?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hello All
I had connected ftp using vb6.0 application and want to create new folder on ftp using vb6.0.
Please help.
Thanx regards
Shazz
Shazz here to help you...
|
|
|
|
|
Shazz Rock wrote: I had connected ftp using vb6.0 application
OK, what did you use to accomplish this?? There's got to be something in the FTP library you used to do what you want. Without knowing what you used, it's really difficult to tell you what you have to do.
|
|
|
|
|
Thanx Dave
This is my code
I had used Inet for URL COnnection along with username password
host_name = txtHost.Text
If LCase$(Left$(host_name, 6)) <> "ftp://" Then host_name = "ftp://" & host_name
inetFTP.URL = host_name
inetFTP.UserName = txtUserName.Text
inetFTP.Password = txtPassword.Text
I hope now you got the code and you can help me.
Please help....
Shazz here to help you...
|
|
|
|
|
In that case, everything you need to do this is found right here[^].
|
|
|
|
|
Hi all.
I have a question for guys.
I have a Form1 include Button2,Button3.
When i Click Button2 it's show Form2 and when i click Buttton3 on Form2 it's show Form3,and input data into a Textbox and click Button OK in From3,so data tranform from Form3 to Form2,and Click Button OK on Form2, so data tranform from Form2 to From1.Plz help me how to do it.
if you cound not try then
msgbox("you will lose")
else
msgbox("you can change yourself")
end if
|
|
|
|
|
You can use properties for this.
"If you had to identify, in one word, the reason why the human race has not achieved, and never will achieve, its full potential, that word would be 'meetings'." - Dave Barry
|
|
|
|
|
Hi,
The one of the ways to do this could be create a class (say class1) and declare a Public Static (Shared in VB.net) variable and store the text of TextBox on form three in that Public Shared variable. This will enable you to access the variable any where in your project.
Hope this helps
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
I understand this may be a question all of you get alot, but I can't find any information on comparisons of each language. My problem is, recently I built a large program that I was very proud of in VB.NET. The program interfaced with AutoCAD and I wanted to get input on it from an AutoCAD discussion group. Unfortunately, I didn't know about Reflector and other decompiling programs, so everyone could see my code. While the code I used to interface with AutoCAD is not a secret on the internet, I still was upset that someone could have free-reign to my source code.
Now I am looking into building something different. A database program. In database standards it will be simple client side program using MDB databases. ADO.NET seems the new and simple option going well with VB.NET, but I also found source code for a mixed mode program, using MFC and ADO.NET.
I am curious about these decompiling programs for .NET. It seems really easy to decompile .NET programs but I don't hear much about decompiling C++ programs.
-Is compiled C++ really that secure?
-Can someone use a decompiling program and produce a Visual Studio solution from an .NET exe?
-What would you make this decision based on?
It is so frustrating that Microsoft has made an easy to program framework, but then made it easy for someone to decompile.
Sorry for the long post. Your help is greatly appreciated!
David Hovey
Phoenix, Arizona
|
|
|
|
|
David Hovey wrote: It is so frustrating that Microsoft has made an easy to program framework, but then made it easy for someone to decompile.
That is why there are programs called obfuscators out there.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I read a book about this and this is basically what they said.
This problem exist with any interpretted/bytecode languages (vb.net, c#, java, alot of the scripting languages, and also .net versions of normally compiled languages) because they aren't compiled to machine code and are still in a relatively high level form.
An obfuscator will make things harder for a person trying to reverse engineer but c++ (assuming you're not using managed code) will probably be harder since it is reduced to machine code and the high level information is stripped out. There are some decompilers for compiled languages but they can only reconstruct part of the code because compiler optimizations tend to change the structure of your code plus some information is impossible to reconstruct.
In theory anything can be reversed but unless you're doing something really revolutionary that has never been done before it probably is not going to be worth someones time to try and reconstruct your obfuscated or compiled code. It would probably take less time for them to just write it themselves.
|
|
|
|
|
Paul and Mark,
Thanks for your help. I have heard of obfuscator's before but wasn't aware of their purpose. I found a freeware version called Skater that seems to work the best. After using the program I checked my compiled program with Reflector and I can't even make out what the original purpose of a function was.
I tried using the Community Edition of the program that comes with Visual Studio, but it seemed to only rename local variables. I was amazed how expensive the few obfuscator programs I looked at are.
|
|
|
|
|
David Hovey wrote: I found a freeware version called Skater that seems to work the best.
I've used Skater before and it is pretty good for the price.
David Hovey wrote: Reflector
It is a good tool and crashes when trying to reverse compile any Skater obfuscated code.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Is it possible to disable the contextmenustrip highlighting while selecting certain menu items?
For example:
UnDo (Blue highlight)
ReDo (Blue highlight)
Cut (disable highlight)
Copy (disable highlight)
Paste (disable highlight)
Any suggestions, ideas, or 'constructive criticism' are always welcome.
|
|
|
|
|
Hi all
I need to write binary information to the header of a bitmap file which is supposed to follow a standard filetype layout but doesn't. To be more clear: due to official specification, the image data starts at byte 8.192 while in the file to repair it starts much earlier, so that the (required) full header information doesn't fit... writing my full "standard header", as I intend to, would therefore overwrite image data.
Is there a way to insert the missing number of bytes into the file with VB?
Thank you for ideas
Michael
|
|
|
|
|
AFAIK, you cannot directly insert data in the middle of a file. Perhaps you should read the data from existing file, modify it the way you want and write to another. After that you can replace the old file with the new one.
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
Thanks for your quick answer, Mika. I'll go the way you suggest.
|
|
|
|
|
You're welcome.
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
Hey ,
I want to create a datarelation with 2 primary keys (or more) between two tables in a dataset.
how can I do it?
Thanks in advance
|
|
|
|