Is there a way reveal the code of an executable file?
Christos
Printable View
Is there a way reveal the code of an executable file?
Christos
I'm wondering if I ask a bad question?
Christos
Do you mean decompile the executable? If so, yes.
Yes, I quess that is what I mean. I have a small applcation and I would like to analyze the code.
Christo
There's a few ways to do this, http://www.remotesoft.com/salamander/ is recommended a lot. There are also some built-in tools like ildasm.exe. Search around for .net decompilers
Thanks for the link. I was surprised to see the price. Maybe someone can give me some hints on this application I attached ( I renamed it from .exe to .txt. I'm trying to create a similar app and am having trouble building an interface that will display my array like this on. Any assistance would be appreciated.
Christos
Should be a fairly simple matter of just creating new labels at run time while loopin through the array, set their position and size and set ther text value to the array value.
VB Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim tst As Label tst = New Label() tst.Height = 10 tst.Width = 10 tst.Text = 1 tst.Show() Me.Controls.Add(tst) End Sub
this shows how to create a label at runtime. Now just apply this to a loop of the array and increment tst.Left and tst.Top as necessary
I hope you get my meaning. Trying to leave you a little to figure on your own. :D If you are still having trouble though say so...
Well, hot dang Cander.... I'm getting ready to start work on an app where I know I'll need to do something like that. Now I know how to do it!
:bigyello: :wave:
TG
I have only been doing this for about 3 weeks and I'm still having trouble relating to the syntax. Are you saying that each value within the array gets it's own label? It looks like some type of gris but as I understand datagrids, those are for databases.
Christos
yeah you are basically creating a new label for each valkue in the array and drawing a grid with them.. Give me a few minutes and ill write a full example
This is the text of my project if it helps.
Christos
Example of displaying a 2d array as a sort of grid
VB Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim tst As Label Dim arr(2, 2) As Integer Dim lfthold As Integer Dim tophold As Integer Dim a As Integer Dim b As Integer arr(0, 0) = 1 arr(0, 1) = 2 arr(1, 0) = 3 arr(1, 1) = 4 ' first row For a = 0 To 1 For b = 0 To 1 tst = New Label tst.BackColor = System.Drawing.Color.LightBlue tst.Height = 15 tst.Width = 15 tst.Top = tophold tst.Left = lfthold tst.Text = arr(a, b) tst.Show() Me.Controls.Add(tst) lfthold += 20 Next lfthold = 0 Tophold += 20 Next End Sub End Class
for averaging and summing, well you can see how to loop above in the code, just apply that to it and use the Math you should know already
I think I'm more confused now. I really apreciate yoour patience on my ignorance. I inserted your example to my form and nothing showed in the form. Maybe I just need to step back for a few minutes and resume after a ???
Christos
Well make sure you didnt put in the End Class I accidently included and that your forms name is Form1 and that there isnt another Form1_Load event
I created a new form to test the code and it worked fine. It must be something else in my original form.
Did you get a chance to play with the app I sent? What do you think?
Christos
Glad you got it working.
The app was cool. Im not sure what use I would have out of it, but its interesting as a concept tool to emulate for your class. Working with arrays is a neccessary skill. So just keep at it!
Although I may be back for more.
Thanks for everything.
Christos