Jul 12 2009
C# & Java conversion
Welcome to the series of CSharpJavaMerger Framework, a free C# and Java conversion tool. The tool is used in our real world development of SCM Anywhere, a SCM tool with fully integrated version control, bug tracking and build automation. If you have any comments regarding C# and Java interoperability, feel free to send me an email.

[...] free C#-Java conversion tool CSharpJavaMerger is a framework that enables you to write one set of code which can be used both by C# and Java. [...]
[...] public void AddTwoValues() { try { CString strValue1 = m_mainForm.GetFirstTextBoxValue(); CString strValue2 = m_mainForm.GetSecondTextBoxValue(); int iValue1 = strValue1.ToInteger(); int iValue2 = strValue2.ToInteger(); int iResult = iValue1 + iValue2; CString strShowResult = CString.ValueOf(iResult); m_mainForm.ShowResult(strShowResult); CString strSaveResult = new CString(strValue1.GetValue() + " + " + strValue2.GetValue() + " = " + strShowResult.GetValue() + "n"); m_mainForm.SaveResult(strSaveResult); } catch (Exception ee) { m_mainForm.SaveResult(new CString(ee.Message + "n")); m_mainForm.ShowResult(new CString("Error")); } } More info on CSharpJavaMerger: C# & Java interoperability [...]
[...] public void AddTwoValues() { try { CString strValue1 = m_mainForm.GetFirstTextBoxValue(); CString strValue2 = m_mainForm.GetSecondTextBoxValue(); int iValue1 = strValue1.ToInteger(); int iValue2 = strValue2.ToInteger(); int iResult = iValue1 + iValue2; CString strShowResult = CString.ValueOf(iResult); m_mainForm.ShowResult(strShowResult); CString strSaveResult = new CString(strValue1.GetValue() + " + " + strValue2.GetValue() + " = " + strShowResult.GetValue() + "n"); m_mainForm.SaveResult(strSaveResult); } catch (Exception ee) { m_mainForm.SaveResult(new CString(ee.Message + "n")); m_mainForm.ShowResult(new CString("Error")); } } More info on CSharpJavaMerger: C# & Java interoperability [...]
[...] more: astahostBlog: Kevin.Gao.Blog()Official site: [...]
Good Tutorial indeed. Thanks for posting.