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
0
votes
1 answer

Using ScriptGetProperties with Delphi

How can I use ScriptGetProperties API from Uniscribe Dll (usp10.dll) in Delphi I found an example in C++, but I don't know how to translate it, because I'm not good on C. const SCRIPT_PROPERTIES **g_ppScriptProperties; int g_iMaxScript; WCHAR…
Mohammed Nasman
  • 10,992
  • 7
  • 43
  • 68
0
votes
1 answer

How do I use Jangaroo to convert a single As3 function to javascript?

I've stumbled upon Jangaroo, and it seems to provide what i need. The problem is that to use it the docs say that i need to setup maven. I really have a single function, so all that is a bit of an overkill. The ideal solution would be something…
beppe9000
  • 1,056
  • 1
  • 13
  • 28
0
votes
5 answers

How would I shorten this If... Else... statement to check the state of a Date?

I am a C# programmer but dabbling in VB.Net because everybody else in my team uses it. In the interests of professional development I would like to shrink the following If... Else... statement. If cmd.Parameters("@whenUpdated").Equals(DBNull.Value)…
Ian Roke
  • 1,774
  • 1
  • 19
  • 27
0
votes
1 answer

How to convert this code?

I've this function of getting pixels from an image written in Java. I'm converting it into Objective C. p1 is my object of Pixel class. Inside getpixels function, the first two lines shows how to get the image width and height and store it into…
user3863537
  • 101
  • 1
  • 12
0
votes
1 answer

How to convert this code from Unityscript to C#?

I am trying to convert Unity UnityScript to C#. I am getting this error: Assets/Scripts/BoostPlatformCheck.cs(40,36): error CS0019: Operator ==' cannot be applied to operands of typeint' and `object' Here is the C# code: int collidedWith =…
LooMeenin
  • 818
  • 3
  • 17
  • 33
0
votes
2 answers

Getting incorrect mathematical value after Matlab code converted to C#

I am using a method which was generated using the TableCurve program and written in Matlab. I am trying to convert the method into C# to use in my project but it is returning incorrect values. I think I have narrowed down the problem to a particular…
kleineg
  • 462
  • 1
  • 6
  • 18
0
votes
2 answers

Converting ASP.NET web site to MVC2

I have my existing web site developed using ASP.NET. It's college management system. Now I need to redevelop it on MVC2. What all changes do I need to do? I am little bit aware of MVC and have done some exercises also. Thing I know is I can keep my…
Jaqen H'ghar
  • 1,839
  • 7
  • 37
  • 66
0
votes
1 answer

Converting Code Snippet from C# to VB.NET

All the automated, online converters weren't able to convert this code. Unfortunately my brief knowledge of C# has also let me down. The code originates from a blog, linked from another of my questions. Here is the code snippet in C#; var…
Jake Edwards
  • 1,190
  • 11
  • 24
0
votes
1 answer

How to export a symbolic variable from Maple into a textfile (in Matlab format)?

I have a symbolic matrix (18-by-18) in Maple that I want to export to Matlab. I used with(CodeGeneration) and then Matlab(...) in order to convert it to Matlab syntax, but it doesn't respond because the matrix is too large. Is there any other way to…
milad
  • 169
  • 1
  • 2
  • 10
0
votes
1 answer

Converting from C++ with OpenGL to Objective-C code

I recently bought a Mac, and want to rewrite a few of my programs in Objective-C with Cocoa, but have no experience in either. What I imagine would be the easiest to start with was some of my OpenGL code in C/C++ (just my classes, macros, and math…
0
votes
2 answers

Returning the data type of columns in a generic C# class

I am trying to convert the following piece of java code to C# and I am getting stuck at the point where I need to get the data type of the column. I am not too sure about the functions or procedure calls that I would be using. .NET Code namespace…
rvphx
  • 2,324
  • 6
  • 40
  • 69
0
votes
2 answers

AES 128 CTR Mode Bit Shifting to Create Counter

I have access to some VC++ source code for which I am trying to convert to VB.NET. I previously asked a question regarding bit shifting, and although the answers given made sense and seemed rather simple to convert over to VB.NET, I am having…
Jay
  • 885
  • 1
  • 7
  • 9
0
votes
2 answers

Javascript Conversion from VBA

I am trying to convert a script from VBA to Javascript and I need help. The purpose is to move a spreadsheet into GDocs. First of all here's what the VBA script does along with its code. Dim lngN As Long Dim lngCol As Long Cells.Unmerge With…
0
votes
1 answer

Converting iOS code to Android, OpenCV

I have Code as following which is working fine in iOS, and i Want to convert that code into Android. If anyone have used openCV library then please help me out. Code is used for finding smaller image is available in larger image or not, and if…
Mehul Thakkar
  • 12,440
  • 10
  • 52
  • 81
0
votes
1 answer

VC++ To VB.NET Code Conversion

So I am working on porting a very small chunk of code from VC++ to .NET. I have always been a VB guy, dabbled a bit in C# but not much, and have little to no knowledge in VC++. Yeah, I know, it's probably a bad idea to try and port code from a…
Jay
  • 885
  • 1
  • 7
  • 9