Click here to Skip to main content
15,881,882 members
Home / Discussions / C#
   

C#

 
AnswerRe: hello sir... for com port setting for sms application in c# Pin
Kornfeld Eliyahu Peter15-Feb-14 23:31
professionalKornfeld Eliyahu Peter15-Feb-14 23:31 
AnswerRe: hello sir... for com port setting for sms application in c# Pin
OriginalGriff15-Feb-14 23:32
mveOriginalGriff15-Feb-14 23:32 
QuestionTrying to make a converter Pin
daddy35615-Feb-14 14:01
daddy35615-Feb-14 14:01 
AnswerRe: Trying to make a converter Pin
Richard Andrew x6415-Feb-14 17:26
professionalRichard Andrew x6415-Feb-14 17:26 
GeneralRe: Trying to make a converter Pin
Mycroft Holmes15-Feb-14 20:41
professionalMycroft Holmes15-Feb-14 20:41 
GeneralRe: Trying to make a converter Pin
harold aptroot15-Feb-14 23:52
harold aptroot15-Feb-14 23:52 
GeneralRe: Trying to make a converter Pin
harold aptroot15-Feb-14 23:50
harold aptroot15-Feb-14 23:50 
GeneralRe: Trying to make a converter Pin
daddy35617-Feb-14 11:49
daddy35617-Feb-14 11:49 
You are exactly right, with your explenation it is a ghost recon Advanced warfighter 2

Deisel script file, I have a console aplication that compiles file extention *.dsf to *.dxe
that is what you see in hex is the dxe file.
What I am working on is decompileing them back to dsf
here is some of the c# code I have so far:

MainForm.cs

namespace DxeDasm
{
public partial class MainForm : System.Windows.Forms.Form
{
private System.Windows.Forms.TreeNode lastNode { get; set; }
private string file_path { get; set; }
private object new_node { get; set; }

[System.Flags]
public enum FileFlags
{
Import = 0x01,
Field = 0x02,
Class = 0x03,
Assembly = 0x04,
Script = 0x05
}

public MainForm()
{
InitializeComponent();
}

protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}

private void Openfile(string file)
{
treeView1.Nodes.Clear();
lastNode = new System.Windows.Forms.TreeNode(System.IO.Path.GetFileName(file_path));
treeView1.Nodes.Add(lastNode);
var d = new dxe_dasm.Program.ScriptDecompiler();
d.FoundClassCallback = new dxe_dasm.Program.ScriptDecompiler();
d.FoundMethodCallback = new dxe_dasm.Program.ScriptDecompiler();
d.FoundMemberVarCallback = new dxe_dasm.Program.ScriptDecompiler();
d.FoundGlobalVarCallback = new dxe_dasm.Program.ScriptDecompiler();
d.FoundImportCallback = new dxe_dasm.Program.ScriptDecompiler();
d.FoundEndOfCassCallback = new dxe_dasm.Program.ScriptDecompiler();
d.DecompileHeader = file;

richTextBox1.Text = d.Decompile(new_node);
}
public void CallbackFoundClass(string file)
{
System.Windows.Forms.TreeNode new_node = null;
new_node = new System.Windows.Forms.TreeNode();
lastNode.Nodes.Add(new_node);
lastNode = new_node;
}

public void CallbackFoundMethod(string file)
{
}
public void CallbackFoundVarMember(string file)
{
}
public void CallbackFoundVarGlobal(string file)
{
}
public void CallbackFoundImport(string file)
{
}
public void CallbackFoundEndOfClass(string file)
{
}
}
}

Program.cs

namespace DxeDasm
{
static class Program
{
///
/// The main entry point for the application.
///

[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
}

internal class ScriptDecompiler
{
public ScriptDecompiler FoundClassCallback;
public ScriptDecompiler FoundEndOfCassCallback;
public ScriptDecompiler FoundGlobalVarCallback;
public ScriptDecompiler FoundImportCallback;
public ScriptDecompiler FoundMemberVarCallback;
public ScriptDecompiler FoundMethodCallback;
}

internal object DecompileHeader
{
set
{
if (value == null)
{
throw new ArgumentNullException("file");
}
else
{
throw new NotImplementedException();
}
}
}

public string Decompile(object o)
{
throw new NotImplementedException();
}
}
}
}

some help with this would be great
my program will load a dxe file and decompile it bakk to dsf
I'm going to have to use some java code for the script enum though
I'm also studying up on decompilation_thesis Reverse Conpilation Techniques by Cristina Cifuentes
I will be applying alot of her techniques in the control flow graph
aswell as some techniques from Redgates .net decompiler
I hope some fellow programmers can help me with this task.
thank you
GeneralRe: Trying to make a converter Pin
harold aptroot17-Feb-14 21:30
harold aptroot17-Feb-14 21:30 
GeneralRe: Trying to make a converter Pin
daddy35618-Feb-14 0:27
daddy35618-Feb-14 0:27 
GeneralRe: Trying to make a converter Pin
harold aptroot18-Feb-14 0:42
harold aptroot18-Feb-14 0:42 
GeneralRe: Trying to make a converter Pin
daddy35618-Feb-14 4:03
daddy35618-Feb-14 4:03 
GeneralRe: Trying to make a converter Pin
harold aptroot18-Feb-14 4:37
harold aptroot18-Feb-14 4:37 
GeneralRe: Trying to make a converter Pin
daddy35618-Feb-14 6:06
daddy35618-Feb-14 6:06 
GeneralRe: Trying to make a converter Pin
harold aptroot18-Feb-14 6:25
harold aptroot18-Feb-14 6:25 
GeneralRe: Trying to make a converter Pin
harold aptroot18-Feb-14 10:12
harold aptroot18-Feb-14 10:12 
GeneralRe: Trying to make a converter Pin
daddy35618-Feb-14 10:48
daddy35618-Feb-14 10:48 
GeneralRe: Trying to make a converter Pin
harold aptroot18-Feb-14 22:09
harold aptroot18-Feb-14 22:09 
GeneralRe: Trying to make a converter Pin
daddy35619-Feb-14 3:38
daddy35619-Feb-14 3:38 
GeneralRe: Trying to make a converter Pin
harold aptroot19-Feb-14 4:34
harold aptroot19-Feb-14 4:34 
GeneralRe: Trying to make a converter Pin
daddy35619-Feb-14 5:35
daddy35619-Feb-14 5:35 
QuestionC# string formatting Pin
Member 1059957015-Feb-14 13:47
Member 1059957015-Feb-14 13:47 
AnswerRe: C# string formatting Pin
Mycroft Holmes15-Feb-14 17:07
professionalMycroft Holmes15-Feb-14 17:07 
AnswerRe: C# string formatting Pin
OriginalGriff15-Feb-14 23:06
mveOriginalGriff15-Feb-14 23:06 
AnswerRe: C# string formatting Pin
V.16-Feb-14 21:05
professionalV.16-Feb-14 21:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.