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
1
vote
1 answer

converting MFC desktop application GUI in java

I have a MFC based desktop application. Application is whole written in MFC so it is not cross platform compatible Hence i need to make it cross compatible. I thought to convert GUI part into java (swing) for cross compatibility and make dll or .so…
Hemant Metalia
  • 29,730
  • 18
  • 72
  • 91
1
vote
3 answers

Tool for 'Flattening' (simplifying) C# Source

I need to provide a copy of the source code to a third party, but given it's a nifty extensible framework that could be easily repurposed, I'd rather provide a less OO version (a 'procedural' version for want of a better term) that would allow minor…
1
vote
2 answers

C# or VBNET equivalent to scope resolution operator?

I am porting php code to vbnet (i'm a little better at vbnet than c#). In the php is the scope resolution operator. Here's the bit: $args = phpZenfolio::processArgs( func_get_args() ); Equivalent in c#/vbnet? The whole function is the following…
Ashok Padmanabhan
  • 2,110
  • 1
  • 19
  • 36
1
vote
0 answers

Installation of PHP to ASP.NET migration tool on Windows 7 64-bit?

I am attempting to install the PHP to ASP.NET migration tool on W7 64 that has .NET 4, MVC2/3, VS 2010 installed. I had to load asp.net 1.1 to at least get the installed to run. However install fails. I am wondering if anyone has successfully…
Ashok Padmanabhan
  • 2,110
  • 1
  • 19
  • 36
1
vote
1 answer

How to convert 'if the do' from SAS to Pyspark

I've a df like this: Zip City 'River' 'London' ' ' 'Rome' 'River' 'Berlin' 'River' 'Madrid' ' ' 'Munich' ' ' 'Paris' SAS code below which I've converted in Pyspark if Zip = '' then do Flud = City; Flag =…
1
vote
0 answers

From Solidity To Dart : how reproduce an Solidity Address type construction in Dart

I have not managed to convert a line of code I have in one a Smart Contract of the back end of my DAPP into the Dart syntax for the front end part of it. SOLIDITY : address account =…
krizalyde
  • 11
  • 2
1
vote
1 answer

Translating "Bodies to Parts" Macro in CATIA V5 from VBA to C#

I'm trying to convert the Bodies from Parts to Parts in a Product in CATIA. I found a VBA script that works fine, but I have to translate it to C#. The VBA script is the following: Sub GreateProductsFromBodies_SelectAllBodies() On Error…
1
vote
1 answer

How to convert a condition check from C# to Java?

I am attempting to convert this line of code from C# TO Java and I am having quite a hard time wrapping my head around it. isEqual = !dbCertDict.Keys.Any(x => !String.Equals(dbCertDict[x], requestCertDict.ContainsKey(x) ? requestCertDict[x] : "",…
Flats
  • 81
  • 1
  • 13
1
vote
1 answer

Convert a parameteric plot from mathematica to python

I have a small parametric plot that I am trying to convert to python from Mathematica. The problem is that my python script does not match this, I am struggling to get the list plot to work as it would be used in Mathematica. How would you write…
user4933
  • 1,485
  • 3
  • 24
  • 42
1
vote
2 answers

How do you convert C++ _tcscpy, _tcscat to Delphi?

I'm converting this code from C++ to Delphi but I don't get the following part of the code. Can anyone explain me what the following code means; what's happening to the szBuff buffer ? I'm pretty sure it's such kind of formatting (replacement), but…
user532231
1
vote
1 answer

How can I write code in Java/ASP.NEt/Python for using a component based library written in PHP?

I have a component based library which is completely written in PHP and works like a charm. A sample snippet of the code is :
Mahendra Liya
  • 12,912
  • 14
  • 88
  • 114
1
vote
2 answers

How to use/convert sed to Python?

Any idea to convert the given line below into Python? sed 's+forwarding_link+'$link'+g' first.html > index2.html
Adarsh
  • 25
  • 4
1
vote
1 answer

What shall be the Python3 equivalent for useragent and http libraries in perl?

I'm quite new to Perl and Python. I have to convert some old functions created in Perl to Python. I am struggling to find the python equivalent for modules like -HTML::Form->parse() -{ua}->simple_request() etc. I had gone through modules like…
1
vote
1 answer

How to map a List to a Set while applying a method(Java to Kotlin code conversion)?

I have this code snippet in Java (this is an MCVE; actual code is more complex but has exact same issue): enum StatusEnum { A, B, C; } [...] final static Set names = Arrays.asList(StatusEnum.values()) …
Alex R
  • 11,364
  • 15
  • 100
  • 180
1
vote
0 answers

What is replacement of "match.groupdict()" method of python in Java?

I have python code as below. I want to convert this code in Java but I am not getting replacement of match.groupdict() in Java. I have applied two different regex for each matchRegex(expr, data) method call in examples below but there may be more…
Java-Dev
  • 438
  • 4
  • 20