Project on Code Conversion
-
I have to create a project on code conversion from C# to VB.Net and from C# to Java(J2SE) and vice versa. Please help with the source code. However there are 2 ways of achieving the task. 1) by creating a dll file 2) by giving if else condition on button click. Please help me.
-
I have to create a project on code conversion from C# to VB.Net and from C# to Java(J2SE) and vice versa. Please help with the source code. However there are 2 ways of achieving the task. 1) by creating a dll file 2) by giving if else condition on button click. Please help me.
-
1. What has this to do with ASP.NET? 2. No one is going to write your code for you. 3. Please read http://www.codeproject.com/Messages/1278599/How-to-get-an-answer-to-your-question.aspx[^], particularly point 2.
Use the best guess
I understand and also i was not expecting complete code for it. the only thing i require is some guidance on how should i start writing code for it. I cannot use any tools. I have to do everything from scratch. I should create dll file in web app or in console app???? the exact problem is: in C# we write Console.WriteLine("Hello"); which in Java will be System.out.println("Hello"); so what should i write in the dll file so that the above conversion takes place. Please guide me.. :~
-
1. What has this to do with ASP.NET? 2. No one is going to write your code for you. 3. Please read http://www.codeproject.com/Messages/1278599/How-to-get-an-answer-to-your-question.aspx[^], particularly point 2.
Use the best guess
-
I understand and also i was not expecting complete code for it. the only thing i require is some guidance on how should i start writing code for it. I cannot use any tools. I have to do everything from scratch. I should create dll file in web app or in console app???? the exact problem is: in C# we write Console.WriteLine("Hello"); which in Java will be System.out.println("Hello"); so what should i write in the dll file so that the above conversion takes place. Please guide me.. :~
Garishma wrote:
I cannot use any tools. I have to do everything from scratch.
Nearly all professional developers use whatever tools are available; if you cannot make use of them then you are not likely to get very far with this.
Garishma wrote:
so what should i write in the dll file so that the above conversion takes place.
You obviously need to do some more studying and planning before trying this project. You don't 'write' anything in the DLL, you create some classes and methods which will analyse the C# source code and convert it to Java. This is no easy task.
Use the best guess
-
-
Garishma wrote:
I cannot use any tools. I have to do everything from scratch.
Nearly all professional developers use whatever tools are available; if you cannot make use of them then you are not likely to get very far with this.
Garishma wrote:
so what should i write in the dll file so that the above conversion takes place.
You obviously need to do some more studying and planning before trying this project. You don't 'write' anything in the DLL, you create some classes and methods which will analyse the C# source code and convert it to Java. This is no easy task.
Use the best guess
I tried writing this code.. on button_click: if (TextBox1.Text == "Console.WriteLine") { TextBox2.Text = "System.out.println"; } if (TextBox1.Text == "import.java.util") { TextBox2.Text = "System.Data"; } else { Response.Write("error"); } this code only shows "error". However if there is only one if condition then the output is generated.
-
I tried writing this code.. on button_click: if (TextBox1.Text == "Console.WriteLine") { TextBox2.Text = "System.out.println"; } if (TextBox1.Text == "import.java.util") { TextBox2.Text = "System.Data"; } else { Response.Write("error"); } this code only shows "error". However if there is only one if condition then the output is generated.
-
I tried writing this code.. on button_click: if (TextBox1.Text == "Console.WriteLine") { TextBox2.Text = "System.out.println"; } if (TextBox1.Text == "import.java.util") { TextBox2.Text = "System.Data"; } else { Response.Write("error"); } this code only shows "error". However if there is only one if condition then the output is generated.
-
sure! the first textbox event have no "else". so! Just show the second textbox event info!