Generate Main App And Dll Checksum Eachother?
Mar 24, 2010Is there any way to generate checksum for a dll from the main app (compiled) and the main app from the dll when I run the main app or something of this kind?
View 3 RepliesIs there any way to generate checksum for a dll from the main app (compiled) and the main app from the dll when I run the main app or something of this kind?
View 3 RepliesI've wanting to generate a CRC16-X25 checksum in the form HiByte and LowByte. All the examples I've found by searching are either VB6 which uses functions and data types that are no longer supported or C, C++ etc. Does anyone have a simple VB.Net version? Speed is not an issue.
View 10 RepliesStructure TextureStruct
Dim unk1 As ULong 'always 0x70007
Dim unk2 As ULong 'always 0x70007
Dim unk3 As ULong 'always 0x70007
Dim unk4 As ULong 'always 0x70007
Dim unk5 As ULong 'always 0x70007
Dim unk6 As ULong 'always 0x70007
[Code]...
vb program to append two pdf files together into one? I have invoices that are created as pdf files and I need to append a special announcement also a pdf to the end of it so I can upload one file to the internet for customers to download and view.
View 4 RepliesI need to take six altitudes altitude1 and altitude2 and check to see if they are with in a value of 250 of each other. Then if there are any that are within 250 of each other, to make them turn red.
Second thing is:
I need to take 6 altitudes, and arrange them. I have them in panels and I have 6 empty panels as place holders for .location value however I need to know how to look at 6 values and say arrange these values accordingly highest number this place lowest number this place etc.
I have looked everywhere on the internet and maybe im just retarded when it comes to math in vb.net.
I am trying to figure out how to place controls on top of one another in html.For example. I am trying to place 2 labels on top of eachother. and also I am trying to place a text box under a dropdownList.
View 3 RepliesI have so far written a program where you click a button and a custom control is added to the form. These controls can then be dragged and positioned anywhere on the form.I know want to be able to align/snap these controls.
View 11 RepliesI have hex strings that I would like to write a regular expression for. Here are some example strings.
[Code]...
I've noticed that a class can "overload" a read-only property of its parent class, even though this isn't allowed within a class. I don't understand why this is allowed or what (if anything) it accomplishes.
[Code]...
The signature of mySubClass.SomeProp is identical to myClass.Prop—how can the former overload the latter?
In practice this seems to function just like Shadows, is that true?
I'm working with some very large files residing on P2 (Panasonic) cards. Part of the process we employ is to first generate a checksum of the file we are going to copy, then copy the file, then run a checksum on the file to confirm that it copied OK. The problem is, is that files are large (70 GB+) and take a long time to complete. It's an issue since we will eventually be dealing with thousands of these files.
I would like to find a faster way to generate the checksum other than using the System.Security.Cryptography.MD5CryptoServiceProvider I don't care if this means using a specialized hardware card, provided it works and is not to ungodly expensive. I would prefer to have a method of encoding that provided some feedback as to how far the process has gone along so I can display it like I do now.
The application is written in vb.net. I would prefer to be able to use it as component, library, reference within my application, but I'm willing to call an outside application if there is enough improvement in the speed of generating the checksum.
Needless to say, the checksum must be consistent and correct.
This comparison shows the different values of the known good checksum calculation (c#) as used by my client and what I 'hoped' was the vb.net equivalent. How can I get 405 rather than 513 as I currently do?
For i = 0 To length - 2 Step 1
cksum += sendFrameData(i + 5)
Next i
[Code]....
I need to convert a string to get a checksum as follows;
Checksum
The checksum is the 8 LSB (least significant bits) of a simple addition of all octets (note that a message type '30' is two octets with the values 33 hex and 30 hex) following the STX character and until the checksum field. Note that all separators will be included in the checksum, but the STX, checksum and the ETX will not be included.
Dim str as string = "01/00064/O/30/12345678/87654321////////48656C6C6F20576F726C64/"
This should result in checksum = "C2" What type of checksum is this? what should I Google for? CRC, MD5, hash ?
Dim sum As Byte
Dim Trans_Array(_64K, 2) As Byte
Const _64K As Integer = 65536
sum = 0
For i = 0 To 15
BinaryStream.Write(Trans_Array(Address + i, RIGHT_FILE))
sum = (Convert.ToByte(sum + Trans_Array(Address + i, RIGHT_FILE)))
Next
I can't figure out how to calculate the checksum of the bytes from array.
I have the following hex string 40 50 4C 41 59 0D I am transmitting to a piece of equipment, I need to calculate a checksum value to add to the string as the last byte to be sent. The checksum byte is generated in such a manner that the result of addition of all bytes of a message will become 11111111(255). the code that you see here does not work can anyone tell/show me why? Whats important is the checksum calculation.
[Code]...
Is it possible for my application to check if its been modified?
e.g. Could i compile the app and use a 3rd party tool to calculate the MD5 checksum of the compiled exe - and inside the app, code it so that if the MD5 checksum doesnt match then run the deactivation process?
I know its not foolproof but if it makes it slightly more hassle to crack my app i'd rather have it
I'm trying to create an app that controls a BSS BLU-80 (DSP) through Ethernet. I've written a few basic programs in the past, but nothing that used sockets or even required calculating a checksum. One of the values I need to send has to be 24 bits. This one really has me scratching my head. From the manufacturer's docs:
[Code]...
This function doesn't work if I change the input argument 'pdu' from a string to an int.Would someone please help me figure out what to do here so that the checksum does not add the ascii value of the int argument but rather the actual integer value?I took out a few lines of the actual function but it adds the input argument to a packet sent out via TCP protocol.This function shows the integer value just fine in the string that gets encoded as a byte array. the checksum is wrong.!
''Public Function buildpacket(pdu As Integer) is what I want.
Public Function buildpacket(pdu As String)
Dim packet As String
[code]....
I have been trying to compute the checksum for a line of hex code. This is to create a hex file which will be loaded onto an embedded micro.Some of you guys may not know how this is done so very briefly:
a line of hex bytes:
: 10 01 00 00 21 46 01 36 01 21 47 01 36 00 7E FE 09 D2 19 01 40
The underlined bytes are taken and summed. (in this case the decimal 960). and the bold is the checksum Only the 8LSB (or single least significant byte) is needed to compute the checksum... which in this case, 960 = 03C0 in hex, so only C0 is needed.Two's complement is then taken:
step 1) logical not of C0 which is
step 2) add one (integer)
BIN...........DEC...HEX
[code]....
So here is the code I have been using: (quick mention that in the string passed, the hex bytes are all grouped together, there are no space characters)
Public Sub CreateLine(ByVal Data As String)
'Dim BDataArray(DataLength) As Byte
Dim IDataArray(Data.Length) As Integer
[code]....
where i get into trouble is where i commented 'i get into trouble'. My code works, but it's rather crude Now, in that line i first convert the hex value (string) "SChecksum" into an integer. I want to NOT this, so I get my step 2 from my explanation. However, the results appears to be a signed logical NOT. which gives me the wrong answer. My hashed togther version simply subtracts 256 before the not, in order to give me the correct answer.
Basically, I would love for someone to chime in and point out the flaws in my function, and push me towards figuring out the 'proper' way of doing this. Also I can't quite wrap my head around what would happen in the case a string were passed to my function that is over 16 bits, but I imagine I would have to subtract a larger value than 256, before doing the NOT in this case?(whilst we're on the subject of functions, I've used a 'sub', in which case should I used a sub, and which case should I use a function?).
My app works fine on the development machine and 3 other machines. However, some machines just show the main login box and then fail to show the main screen. There is no error message. I installed VS 2008 express on on of such machines and when i compile the project, the following errors appear:
Type 'Microsoft.Office.Interop.Access.Application' is not defined.
Type 'dao.DBEngine' is not defined.
[CODE]..........................
Well im currently developing an application for public use, I have a login screen in which the user enter's their registered credential's and the progressbar loads by increments of 3, now i placed 6 labels ontop of eachother and where the progressbar coding is i put:
If Progressbar.Value >= 1 Then
Label3.Show()
If Progressbar.Value >= 20 Then
Label3.Hide()
Label4.show()
And so on up until Label8 Show at 100%,
Now the problem is... As i have placed the labels ontop of eachother i need them hidden until they are called to show, i have tried adding a background worker to do this but have had no luck, all i see is the labels overlapping eachother when i run my application when i want them hidden untill Label3.Show() is called, and then to display them as they are called and hide them when another one is called to show...
I have a solution with more than one project and the main project contains buttons to open forms from different projects that are in the same solution. Say Project1 is the main project and Project2 is the different project that gives the following error when i compile it:
Error 3 'Sub Main' is declared more than once in 'SystemInformation': SystemInformation.Program.Main(), SystemInformation.My.MyApplication.Main(Args() As String) System Information II
I have already seen other threads with this question but it does not work for me because i have more than one project.For Project2: Application Framework is disabled and the startup object is "SubMain".
in the current project im making i've decided to add in some tools, 1 of which is a renamer based of a renamer app that already exists (called scdtoolz), i want to build my own version of it so i can learn some new things, and build a nice GUI version of it.[code]So what i have managed to determine is that the current app scans the folders contents for the CRC32 Checksum, and renames based of that, since the 456.bin's CRC32 Checksum was 2274F80B, and in the text file 2274F80B is found here 'WWF - Rage in the Cage (T-81015)(U)#2274F80B#'So now i have determined game identification is based of the CRC32 checksums, how would i go about coding a similar ap in vb.net?first i need to make the app scan a folder, but how to return crcchecksum? and then rename if check = XXXX? If MD4 sums are easier/simpler i can use those instead, im lookin at a few hash app sources now, so i think i can see how to get the md5 but not the crc32 yet, or how to rename the 2 files and folder based of the text file.
View 6 RepliesI have taken over support of a VB.Net WinForms application. I am actually a c# developer and am more familiar with the setup of visual studio projects in c# projects. Now I am trying to determine why my application is crashing on a specific XP installation, and I read the suggestion here[URL]..to add a try catch block in the main function. This is suggested in about the 5th post from the bottom. (I will quote it below) However, if I look in the VB.Net visual studio project, I do not find a Main() procedure. What I do find is a grey folder called "My project" with a "Application.myapp" file inside it. This file has an associated designer file, but if I click on it I see the following xml:
[Code]...
what can C# do that VB.Net can't ? VB.net vs C#.net
main differences between visual basic and C# as well as the pros and cons between the two?
currectly i am making a launcher for my game now i was wondering how i put the value that i got from regedit and "main.exe" togher.like for example C:/games/fxmu/main.exe so full direction and application name.this i have to select the regedit and how i run the main.exe. [code]
View 2 RepliesHow do I start up with sub Main? I created a sub Main in a class. I clicked properties on my project. It provided a combobox of possible startup forms, but nowhere could I find an option to choose sub Main.
View 2 RepliesVisual Basic 2010.I just started learning visual basic (im an extreme beginner) and whenever i mess around with creating code, it always gives me this error: sub main () not found in (my projects name). I searched this error up and Microsoft said it was a bug.
View 4 RepliesI have a Class to start my Application.
Imports System.Security.Principal
Public Class MainStart
Public Shared Sub MAIN()
[code]......
Recently i bought the book by Troelsen about VB and the net and tried to run the programs e.g.:
Module Module1
Sub Main()
EntryPoint.Main()
[code]....
I had to add the first sub "Main" otherwise it would not run. Is it possible to do without that sub in the way member OLiver does in the examples he provides?
how solutions to the sub main that is in VB6. because there is no facility in VB.NET?
View 6 Replies