|
Sounds like you have already decompiled it. Try a different decompiler and see if that gives you a better result.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
You're not going to get a full solution to build without errors, no matter what you use. MSIL is NOT a direct represnetation of the full source of your application, only an optimized approximation of it.
|
|
|
|
|
There is a program called reflector that is perhaps what you are looking for.
It is not free though.
|
|
|
|
|
See if you can find a debug/unoptimised version of your program. That way the IL will be the closest to the source code. However, you can never retrieve the exact source code from a compiled output. That's why source control and backups are important.
|
|
|
|
|
|
I'd certainly give Telerik's free JustDecompile tool a try [^] if you have not already tried that.
They are upgrading this tool regularly: [^].
I have no connection to Telerik, and, so far, have only used their free tools, which I appreciate.
good luck, Bill
"Takuan Sōhō died in Edo (present-day Tokyo) in December of 1645. At the moment before his death, Takuan painted the Chinese character 'meng' ("dream"), laid down his brush and died."
|
|
|
|
|
I want to have a program that have just one form. there must be some button in left. with clicking eache button the right side of form must change and have button specific labels and textboxes. I'm new in c# so I don't know what this called?
if there is a specific tools for this job or should I subclass something to create that?
|
|
|
|
|
There is nothing special in what you describe so it not called anything special. It's simply a form that you create.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
There are many types of UI implementation, using a single Form, that you could use here.
If you describe the purpose of this application more specifically, I think you can get more specific advice on which UI type might be be best.
1. do the UI buttons on the left side, always remain fixed, and always have the same title (display text) and function ?
2. when you select one of the possible right-side UI's required: does the amount of horizontal, or vertical space on the Form need to change in order to show all the required controls. That leads to:
3. can the single Form change in Size, or must it remain fixed in size ?
4. finally: can we assume that the varying contents on the right side are going to be a set of facilities, each one with its own unique controls and/or content ?
I will assume in this response you are working in Windows Forms.
For example, here's one idea:
1. You might consider using a SplitContainer control on your form, where the left buttons go on its left panel, and depending on the choice in the left panel, the right panel contents change. A SplitContainer gives you the option to expand the size of the right panel, if it requires more, or less, horizontal space.
The big questions here, to me, are: what are the "units of whatever" that appear on the right side, and do they ever effect what appears on the left side ?
Be happy to respond in more detail if you'll provide more detail here.
best, Bill
<color>"When it comes to atoms, language can be used only as in poetry. The poet, too, is not nearly so concerned with describing facts as with creating images." Niels Bohr
|
|
|
|
|
I create a C# solution using VS2010, containing many projects. I would like to cancel all unneeded files (1. to make the solution lighter as I want to send it using mail, 2. to delete my personal data) . I used Build->CleanSolution, but I note It didn't delete file like .vshost and . manifest, and also files in obj\x86\Debug, so I should do it manually. I there a way to delete them manually (is it useful to delete them for the two goals I have)
Thank for your time
|
|
|
|
|
Take a look at the article[^] and see if that meets your needs.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
Hi All, I understand that usually when you need to pass data from a method to another method the the method doing the sending has to be some other type than void. Having said that, is there anyway I can get data from the PageLoad method which is of type void? Thanks in advance.
|
|
|
|
|
Seeing that this method is part of the standard page load cycle, you couldn't hook into it to get a return value from it. What you are trying to do can be accomplished by using a member variable in your class.
|
|
|
|
|
ASPnoob wrote: I understand that usually when you need to pass data from a method to another
method the the method doing the sending has to be some other type than void
Uhhh, that description is vague at best. The method calling another method can be anynthing. The method RETURNING a value must not be void. But, that doesn't mean a void method cannot return data/values. It can still return data via Ref parameters.
Can you do this with PageLoad?? No. You can't change that method. You can only do this with code/method headers you have control over.
Like Pete said, what you're wanting to do is easily done using properties and fields set by the code in PageLoad.
|
|
|
|
|
Hi All, I understand that usually when you need to pass data from a method to another method the the method doing the sending has to be some other type than void. Having said that, is there anyway I can get data from the PageLoad method which is of type void? Thanks in advance.
|
|
|
|
|
I have two questions to ask about passing arguements to a C# 20008/2010 console application:
1. In an existing C# 2008 console application that I have made changes to, I have asked the network administrator what values are passed to the application. He told me none. However after I have debugged the application, I find it hard to find beleive that no arguments are passed to the application. Thus can you tell me where to look to see what variables are passed to the application that is setup in a windows scheduler for windows 7?
2. I have just written a C# 2010 console application that I pass values to. I need to setup the windows scheduler to run the job once a day and I need to pass the application some input argumements.
Thus can you answer my two question? Pointing to a url link would be helpful also!
|
|
|
|
|
Check your
Main(string[] args) method.
args will contain the arguments that were passed to your application.
This[^] will show you how to use the task scheduler
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
hi guys , im wondering if there are any soluation for my qustion .
i have two 2D array here , first and second array are defined like this
int [,] MyfirstArray = {{0,3,2},{4,1,5},{6,7,8}};
int [,] MySecondArray = new int[3,3];
MySecondArray = MyfirstArray;
what do i want to do its just to exchange the value of 2 block of the second array . Take alook
int NewValue = 0;
int Old Value = 0;
NewValue = MySecondArray[1,0];
OldValue = MySecondArray[0,0];
MySecondArray[0,0] = NewValue;
MySecondArray[1,0] = OldValue;
and i know that array is ref type but i dont know why after im doing this , both of the arrays value are changed .
the result is like this . MyfirstArray = {{4,3,2},{0,1,5},{6,7,8}};
MySecondArray = {{4,3,2},{0,1,5},{6,7,8}};
but i dont want this effect on the first array . and maybe you wondering why im using 2 array , just guess i need the first array and i cant remove or not use it . ty for any help .
|
|
|
|
|
You have to make a copy of your MyFirstArray in order to do what you want. You cannot just assign MySecondArray to it becuase now you have two variables (arrays) pointing to the same set of data, your integers.
See Array.Copy[^].
|
|
|
|
|
Im sorry for my stupid qustion but how to make that
mmm , can you show me an example to clear me up .
|
|
|
|
|
Array.Copy(MyfirstArray, MySecondArray, MyfirstArray.Length);
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
Seriously? I gave you a link to the very documentation you need to read and you couldn't put that much effort into it an try stuff out??
I'm not going to write the one line of code for you.
|
|
|
|
|
I have classes in an assembly that I have been able to load using Assembly.LoadFrom() method. I now need to call a method in a class from the loaded assembly but I don't know how to do that.
I tried the following:
Assembly asm = Assembly.LoadFrom("LibTry.dll");
if (asm != null)
{
object obj = asm.CreateInstance("LibTry.Try");
Type[] types = asm.GetExportedTypes();
}
I'm able to create an instance of a class in the assembly and the return value in
'obj' is valid and not null.
By running the debugger, I set a breakpoint at the line
Type[] types = asm.GetExportedTypes();
I hovered the mouse over the return values and I saw the name of the class in the
'obj' and the exported types in 'types'.
The problem now is to make function calls from the class. Is there any way I can create an instance of the exported types using the name of the class rather than 'object' or call and use the public members in the class? Please help and thanks in advance.
modified 22-Sep-12 8:34am.
|
|
|
|
|
Use the GetMethod member from the Type , similar to the code below;
namespace bla
{
public class X
{
public void Test(string what)
{
Console.WriteLine(what);
}
}
class Program
{
static void Main(string[] args)
{
Assembly asm = Assembly.GetExecutingAssembly();
if (asm != null)
{
object obj = asm.CreateInstance("bla.X");
Type xType = obj.GetType();
MethodInfo mi = xType.GetMethod("Test");
mi.Invoke(obj, new object[] { "Hello World" });
}
Console.ReadKey();
}
}
}
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Thanks Eddy! It's working now. I hope it works for fields as well. I will try that soon.
|
|
|
|