Questions tagged [code-conversion]

The process of converting the logic of some source code from its original language/framework to a different language/framework. Not to be confused with porting, which deals with architectures/platforms.

272 questions
6
votes
4 answers

Conversion of Delphi code to Java

Does a parser exist for Delphi which can be used to convert the Delphi code into Java code automatically?
None
5
votes
1 answer

Automatically convert string concatenation to template literals

I have a code base with many strings built via string concatenation. Is there a automated method for replacing all instances of string concatenation with templates? For example: const a = 'b ' + c; // becomes: const a = `b ${c}`; A script-based…
5
votes
1 answer

Converting MSSQL 'FOR XML PATH' To Oracle

I have a Statement to fill a table on my MSSQL Database. It joins some values together seperated by a semicolon. INSERT INTO XXAArcDocSWSB (ArcDocINr, SWorte) SELECT A.ArcDocINr, B.SWorte FROM XXAArcDoc A LEFT JOIN ( SELECT DISTINCT…
F. Baum
  • 301
  • 1
  • 5
  • 17
5
votes
2 answers

Convert C# Windows forms code to C# Android code

I recently made a program in Windows Forms using Visual Studio but my friends asked me to make an app for it. I then noticed that Visual Studio has made it possible to make apps directly in C#. But when I opened a new project it was different from…
5
votes
3 answers

C# to VB.NET Code Converter

I need a C# to VB.NET code converter, and I'm willing to pay. I want something that's ultra convenient, as I want to reduce the amount of copy/paste that I have to do... so could anybody give me some tips to what is out there? I want processing in…
Brian Mains
  • 50,520
  • 35
  • 148
  • 257
5
votes
1 answer

Is there an updated version of the Java Code Conventions

The official Java Code Conventions document -that I could get hold of- is dated 1997 and it seems that Oracle has no updated version of it. Oracle actually states on the conventions page that: The information on this page is for Archive Purposes…
Ahmad Y. Saleh
  • 3,309
  • 7
  • 32
  • 43
5
votes
1 answer

Starting a process and listening for exit event

I have some code that starts a process and hooks up an event handler to handle when the process exits, the code I have is written in C# and I wonder if something similar is possible with Delphi. System.Diagnostics.Process myProcess = new…
Tester101
  • 8,042
  • 13
  • 55
  • 78
5
votes
1 answer

How to manage code conversion?

I have to convert an application with about 100k lines of code from one programming language to another (java to c++). I'm looking for a solution to track my progress and make sure that nothing falls through the cracks. So far I've thought about two…
lajos
  • 25,525
  • 19
  • 65
  • 75
4
votes
1 answer

How to register type adapter for boolean.class/Boolean::class.javaPrimitiveType and Boolean.class/Boolean.class.java

I am trying to convert this Java sample into Kotlin: Gson gson = new GsonBuilder() .registerTypeAdapter(Boolean.class, new JsonStrictBooleanDeserializer()) .registerTypeAdapter(boolean.class, new JsonStrictBooleanDeserializer()) …
ordonezalex
  • 2,645
  • 1
  • 20
  • 33
4
votes
1 answer

Arithmetic operation not returning the same in VB6 and C#

I translated a VB6 module containing a couple of encryption functions into c#, I have the following aritmethic operation in both sides: C#: int inter, cfc; inter = 6940; cfc = Convert.ToInt32((((inter / 256) * 256) - (inter % 256)) / 256); //cfc =…
4
votes
1 answer

C# version of mp4parser

I am looking to parse mp4 for my .net application. I couldn't find any mp4 parser in .net. Found mp4parser which is in java. Please let me know is there any C# version available? if no, is it possible to use mp4parser with .net?
Sandeep Kumar M
  • 3,841
  • 3
  • 38
  • 59
4
votes
2 answers

Looking for a Code Converter to Convert a Normal Java Code to Reflection-Style Code

I'm looking for a converter to make a reflection-style Java code from a normal Java code. I'm doing this to prevent exceptions like NoClassDefFoundError (I want to be dependent to a class, but I want Java to simply ignore the code if the library I'm…
Mohsen
  • 3,512
  • 3
  • 38
  • 66
4
votes
3 answers

Convert VB.NET code to C#

Is there a library that I can use to convert VB.Net code into C#? There is http://codeconverter.sharpdevelop.net/ but i don't want to use it from a web service.
Lennie
  • 3,197
  • 4
  • 24
  • 26
4
votes
2 answers

Haskell to Python: multiple-functions conversion issue

I am pretty new to programming and I was asked to convert 3 haskell functions into python as a practice exercise. The 3 functions are connected, since output of one is used as the input of the next one and so on. I get what the haskell functions do,…
Edward Coelho
  • 235
  • 2
  • 14
4
votes
4 answers

How to get FileInfo via a foreach Loop?

Trying to convert some VB to C#... (learning C#, too). I have some code that loops through files in a directory and retrieves their file information. I have this originally in VB, but am trying to learn C#, and the online convertors don't give me…
bgmCoder
  • 6,205
  • 8
  • 58
  • 105
1
2
3
18 19