Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Project on Code Conversion

Project on Code Conversion

Scheduled Pinned Locked Moved ASP.NET
csharpjavahelp
10 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Garishma
    wrote on last edited by
    #1

    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.

    L 1 Reply Last reply
    0
    • G Garishma

      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.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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

      G 2 Replies Last reply
      0
      • L Lost User

        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

        G Offline
        G Offline
        Garishma
        wrote on last edited by
        #3

        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.. :~

        L 1 Reply Last reply
        0
        • L Lost User

          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

          G Offline
          G Offline
          Garishma
          wrote on last edited by
          #4

          and the relation with asp.net is that i have to create a website on code converter. So i have to make this project in asp.net.

          L 1 Reply Last reply
          0
          • G Garishma

            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.. :~

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            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

            G 1 Reply Last reply
            0
            • G Garishma

              and the relation with asp.net is that i have to create a website on code converter. So i have to make this project in asp.net.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Do you know ASP.NET already or do you need to look at http://www.asp.net/[^]?

              Use the best guess

              1 Reply Last reply
              0
              • L Lost User

                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

                G Offline
                G Offline
                Garishma
                wrote on last edited by
                #7

                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.

                L W 2 Replies Last reply
                0
                • G Garishma

                  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.

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  Your first task seems to be to study the C# language and its constructs. You cannot hope to create a code converter using statements like that.

                  Use the best guess

                  1 Reply Last reply
                  0
                  • G Garishma

                    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.

                    W Offline
                    W Offline
                    wikizhao
                    wrote on last edited by
                    #9

                    sure! the first textbox event have no "else". so! Just show the second textbox event info!

                    G 1 Reply Last reply
                    0
                    • W wikizhao

                      sure! the first textbox event have no "else". so! Just show the second textbox event info!

                      G Offline
                      G Offline
                      Garishma
                      wrote on last edited by
                      #10

                      sir.. after providing else condition to the first textbox still the same output is derived.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups