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.
Questions tagged [code-conversion]
272 questions
0
votes
1 answer
Does Rhino have function convert its script to java source code?
Does Rhino have function convert its script to java source code? I want to convert Rhino script to java source code.

Kei Minagawa
- 4,395
- 3
- 25
- 43
0
votes
4 answers
Convert VB to C#: Email sending routine
I am new to C# and have a VB sub routine for sending emails.
I am not sure how to convert to C#, can someone please help me?
here is the sub:
Sub SendAdditionalEmails()
Dim strDelimeter As String = ","
Dim strEmailResult As String = ""
…
user241180
0
votes
4 answers
Failing to convert vb to c# class
Ok, what am I doing wrong here? I am trying to rewrite some vb stuff to c# (so I can learn some c#), but am failing miserably.
Here is the code, I'll post what's happenning after it:
private object[] _PNs;
internal object[] ParameterNames { set {…

Kevin
- 2,684
- 6
- 35
- 64
0
votes
3 answers
Matlab code to C# code conversion
function [ samples,y, energies] = energy( speech, fs )
window_ms = 200;
threshold = 0.75;
window = window_ms*fs/1000;
speech = speech(1:(length(speech) - mod(length(speech),window)),1);
samples =…

Blast
- 955
- 1
- 17
- 40
0
votes
1 answer
PHP CURL to VB.net conversion
I have a working php code that extracts links but my problem is i don't know how to convert it into a VB.net code as VB.net does not use CURL. Is there any way to convert this? Thanks in advance.
My code:
$npages=100;
$gg_url =…

Marc Intes
- 737
- 9
- 25
- 51
0
votes
0 answers
C++ to C# static_cast
I'm trying to convert an project from C++ to C# but in the C++ version the following code is used:
std::list& AllPlayers = AutoList::GetAllMembers();
And AutoList is just a header file with the folowwing
#ifndef…

Kiwi
- 2,713
- 7
- 44
- 82
0
votes
3 answers
What does it mean to call a class as a function?
I'm porting some code from Java (I know nothing about this language) to C. By the fact that Java is a C-like language, I have no problem in converting most statements. But I have no idea what some parts of the code mean. It calls a java class as a…

Jack
- 16,276
- 55
- 159
- 284
0
votes
1 answer
Implementing timer code for Atmega8 into Atmega16
This code snippet is written for Atmega8 taken from clapper circuit using Atmega8. Can anyone convert this code snippet for Atmega16 with a little explanation. As I am trying to implement the same for Atmega16 and having some trouble with the timer…

user1811378
- 21
- 2
- 4
0
votes
2 answers
j2objc: command not found
I have to convert java code to objective-c code.
Here I have to write the following code and run on my terminal:
$ cat Hello.java
public class Hello {
public static void main(String[] args) {
System.out.println("hello, world");
}
}
$ j2objc…

user1676640
- 635
- 7
- 17
- 37
0
votes
1 answer
Pseudcode to java
I have looked around for the past hour or so but I can not find any help on this problem. I am trying to convert this pseudocode to java and can not figure out what I am doing wrong(it ever prints anything).
function line(x0, x1, y0, y1)
…

me me
- 778
- 2
- 7
- 18
0
votes
1 answer
XMLVM Android to iPhone Errors
The conversion of my Android application to the iPhone ObjectX environment as described in the XMLVM user manual works almost fine on my MAC, but I end up with 3 errors in the resulting XCode:
The first two errors simply relate to missing files,…

alrts
- 338
- 5
- 12
0
votes
2 answers
Java equivalent of Visual Basic MidB$
Is there an equivalent function in Java for MidB$?
The function returns the specified number of bytes from a string where the definition is MidB$(String As String, Start As Long, [Length] ) As String
It functions a bit similar to String.substring()…

nmenego
- 846
- 3
- 17
- 36
0
votes
3 answers
What is wrong with this code snippet? Its giving me type declaration error
I am trying to convert this code into VB but it is giving me this error.
CONVERSION ERROR: Code could not be converted. Details:
-- line 1 col 8: invalid TypeDecl
Please check for any errors in the original code and try again.
public Exam…

Geeko
- 23
- 2
- 7
0
votes
3 answers
Error Converting C# to VB.NET
I am trying to convert this method to VB.NET but the online converters seem to make a mess of converting it. Can someone help:
C# original:
private IEnumerable>…

Matt Wilko
- 26,994
- 10
- 93
- 143
-1
votes
2 answers
Are there style checker for Ruby code as JSLint for javascript
Possible Duplicate:
Where can I find an actively developed lint tool for Ruby?
I'm new to Ruby and impressed about it's super flexibility.
As a beginner it is hard for me to differentiate good coding style and bad(even dangerous) coding style.
So…

TomCaps
- 2,497
- 3
- 22
- 25