Is it possible to convert code from Java to C# or VB.net to C#?
5 Answers
You could decompile the VB.NET code using Reflector (http://www.red-gate.com/products/reflector/) to get it as C#. You might also try someting like this online converter http://www.developerfusion.com/tools/convert/vb-to-csharp/
Try Telerik Code Converter for a free C#/VB code converter. I've used it - it isn't bad. There are also many commercial ones with lots of features.
Java and C# are very similar and converting between the two (and to/from VB) is possible. A quick search should reveal many commercial options.
If you know a little bit of both C# and Java, converting Java to C# by hand would be the best route to go. That's what I did for a relativley medium sized Java project. Then you can use Sharpdevelop (http://www.icsharpcode.net/opensource/sd/) to convert C# to VB and vice versa.
For Java to C# &VB.Net, you can also use Tangible Java to VB & C# Converter.http://tangiblesoftwaresolutions.com
I hope this could be useful. But it might not work with complex code structures..
Not the answer you're looking for? Browse other questions tagged c# or ask your own question.
Here is the original vba code:
and I want to convert to java here is my code:
I have an error in this line C[j][M] = (St[i] - X);Because there no 'i' variable. I'm out of first loop. So eclipse says that you should create a variable. In vba I can create a variable beginning of the code like: 'Dim i As Integer' but in java is it possible? How can I solve this problem? Thanks in advance
1 Answer
Declare i right before for loop. Since this is a Java question, the for loop is dramatically different in this language and you have to think about the scope.
The reason is in VBA i remains in scope as soon as it's initialized. Where in a Java for loop, that variable is destroyed upon completion, unless it was declared prior. VB has gave me headaches because of that as i is reused frequently in code.
Not the answer you're looking for? Browse other questions tagged javavba or ask your own question.
From Diamond Edge:What do you need to know about free software?
a database tool for java.is a mapper that map sql statement to bean(java file).and accept most DBMS's sql.
- convert sql to java bean
- sqlbeanbuilder SourceforgeProject
- Freeware (Free)
- Windows
- Advertisement
Free Convert Audio to iPhone iPod Music Converter offers easy, completed ways to convert popular audios with friendly interface. Input mp3,amr,ogg,aac,ac3, m4a, wav to convert to mp3,aac,ac3,m4a,ogg with impressive fast speed and super quality.
- free_xill_audio_to_iphone_ipod_music.exe
- Xill Software
- Freeware ($)
- 3.47 Mb
- Win95, Win98, WinME, WinNT 3.x, WinNT 4.x, Windows2000, WinXP, Windows2003, Windows Vista
Free Convert FLV to AVI MP4 MOV WMV 3GP Converter is the most powerful converter. It can convert FLV to all videos as avi,divx,mp4,wmv,svcd,dvd,ipod, iphone, zune,xbox,psp,pmp,apple tv,pocket pc,flv etc. Also, it can convert flv to mp3 etc all audios.
- free_xill_flv_to_avi_mp4_mov_wmv.exe
- Xill Software
- Freeware ($)
- 3.47 Mb
- Win95, Win98, WinME, WinNT 3.x, WinNT 4.x, Windows2000, WinXP, Windows2003, Windows Vista
Free Convert iPhone to AVI FLV WMV 3GP Converter is the easiest video converter. It can convert iPhone,mp4 to almost all videos as avi,divx,mp4, wmv, vcd,svcd,dvd,3gp,ipod, iphone,zune,xbox,psp,pmp,apple tv,pocket pc,flv,swf,mov etc easily and quickly.
- free_xill_iphone_to_avi_flv_wmv_3gp.exe
- Xill Software
- Freeware ($)
- 3.47 Mb
- Win95, Win98, WinME, WinNT 3.x, WinNT 4.x, Windows2000, WinXP, Windows2003, Windows Vista
The Convert Raw to DNG action allows you to use Automator to drive all of your DNG conversions. You’ll need the Adobe DNG Converter 3.2 or later, a free download available here, as well as OS X 10.4 or later..Provides access to all of the. ...
- ConvertRawToDNG.zip
- Ben Long
- Freeware (Free)
- 31 Kb
- Mac OS X 10.4 or later
This tool converts SQL table or query results (multiple resultset) to MS Excel file (.xls file). With the help of Convert SQL to Excel you'll be able to easily turn SQL queries as well as tables into XLS files.This tool also allows you to. ...
- Sql2Excel.zip
- SQLMgmt.com
- Freeware (Free)
- Windows XP, Vista, 7, 7x64
Convert From/To Base64 is a lightweight and easy to use application designed to help you convert strings and files from or to Base64 string.With Convert From/To Base64 you can use any encoding to convert while a sidebar previews decoded string for. ...
- Convert From/To Base64
- Arieldeil
- Freeware (Free)
- Windows XP, Vista, 7
Convert PDF to Txt with pdf2txt converter software which is programmed to be very quick and easy to use. PDF to Txt Converter software enables you to extract the text from PDF document and save this text to user define location. Converting Software. ...
- Convert PDF To Txt
- Business Software
- Freeware (Free)
- 963 Kb
- Win95, Win98, WinME, WinNT 3.x, WinNT 4.x, Windows2000, WinXP, Windows2003,Windows Vista
TXT To PDF converter is an advanced and highly optimized tool developed to create pdf document from text file format easily. Convert TXT To PDF with TXT2PDF converter with very much of ease and save the converted file at user define location. Txt To. ...
- Convert TXT To PDF
- Business Software
- Freeware (Free)
- 963 Kb
- Win95, Win98, WinME, WinNT 3.x, WinNT 4.x, Windows2000, WinXP, Windows2003,Windows Vista
ImTOO Convert PowerPoint to Video Free can convert PowerPoint presentations (PPT) into many video files including AVI, MOV, WMV, MP4, H.264, so that you can play your PPT on iPod, iPhone, PSP or BlackBerry. This free software also allows you to quick. ...
- convert-powerpoint-to-video-free.exe
- imtoo.com
- Freeware (Free)
- 79.92 Mb
- Win7 x32, Win7 x64, WinVista, WinVista x64, WinXP
MacX Convert DVD to MOV for Mac Free Edition is an excellent yet free DVD to MOV converter software which can help Mac users rip and convert DVD to MOV, DVD to MP4 with perfect output quality and high conversion speed on Mac OS.
- macx-convert-dvd-to-mov-for-mac-free-edition.dmg
- Digiarty Software, Inc.
- Freeware (Free)
- 36.28 Mb
- Mac OS X, Mac OS X 10.1, Mac OS X 10.2, Mac OS X 10.3, Mac OS X 10.4, Mac OS X 10.5, Mac OS X 10.6, Mac OS X 10.7, Mac OS X 10.8
Convert PDF to JPG or multiple PDF files to JPG JPEGS Software Do you have a PDF file that you need converted to a jpg, or multiple PDF files that you would like converted to jpg files at the same time? If so, then this software is for you. With this PDF to JPG converter, you can: Select any number of Adobe PDF files that you want converted (including recursive searching and adding of files) Convert the files in batch (so you don t need to wait long times) Add a custom file extension (file name) to the end.
- pdfimagejpgconverteval.exe
- Convert PDF to JPG ormultiple PDF files to JPGJPEGS Software
- Freeware (Free)
- 2.07 Mb
- Win95, Win98, WinME, WinNT 4.x, WinXP, Windows2000
Vba To Java Converter
Related:Convert Vba To Java - Convert Excel Vba Code To Java Code - Convert Units Vba - Convert Vba Javascript - Convert Vba Into Javascript