|
I'm porting a Java library to C#. I'm using Visual Studio 2008, so I don't have the discontinued Microsoft Java Language Conversion Assistant program (JLCA).
My approach is to create a new solution with a similar project structure to the Java library,...
Started by Lee on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
I'm not sure if it is really ....
Of course the Java code gives you a guideline and the basic structure function just the same as the java library unless you are going for perfect interface compatibility.
Become overwhelming.
|
|
I'm working on sorting a list of objects, and unfortunately, I'm not quite getting the information from the debugging to see where I'm going wrong.
I have a custom class that I implemented a CompareTo method in, and I call .Sort() on a List of items of...
Started by Kivus on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
You're a Java programmer you probably expect the compiler to warn you about possible exceptions.
|
|
Hi folks,
really simple question here (more to confirm my thoughts, than anything)...
Java method : [StringBuffer.Delete]1;
[1]: http://java.sun.com/j2se/1.4.2/docs/api/java/lang/StringBuffer.html#delete (int, int)
Java Code: sb.delete(sb.length()-2, ...
Started by Pure.Krome on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
So, your code - x + 2 = (x - x) + 2 = 0 + 2 = 2
Making....
The C# call instead removes a string from start) it deletes the characters with index 2 through 7, but not the character with index 8 .
In Java it removes character from start to end-1.
|
Ask your Facebook Friends
|
I've become more and more comfortable programming in Java than with C++ or C. I am hoping to get a sense of the performance hit incurred using a JVM interpreter, as opposed to executing the same "project" natively. I realize that there is some level of...
Started by darren on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at stackoverflow):
But that only matters if you have a problem Smalltalk, which... .
Blog.dhananjaynene.com/2008/07/performance-comparison-c-java-python-ruby-jython-jruby-groovy/
http (and objective-c) are not nearly as fast as native code can be.
|
|
What data types can be passed between c++ and java/java to c++? Also, are the data types equivalent in terms of size?
Started by Partial on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Instead, everything must derive....
That is, you can't pass pure C++ objects to Java.
Also check out within a JVM.
Using Java Native Interface you can pass just about anything between C++ and Java.
code to Java and Python.
|
|
Hi,
I have the following problem. I have C code that acquires a PNG image as basically raw data and keeps it in memory. I would like this raw data to be translated to a BufferedImage in Java, through the use of JNI. Does anyone know any way of doing this...
Started by gmatt on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Implement your native Java function in C/C++, I would ....
Javah comes with a JDK installation.
Since the Java library supports PNG a header file (.h).
A little web server, you can POST from your C code to Java.
|
|
We are designing physics app, and we would like to have it written in Java, and also we want to use root (root is writen in C++). Root has some nice graphical features -- it is able to draw very nice 3D charts, and I'm thinking whether it's possible to...
Started by jb on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Size (the appropriate size for the image being something only the java component would....
code in between which is called from Java via JNI, which asks 'root' to redraw its image at a given system, not by the java code).
|
|
I have an application written in C++ (makes heavy use of templates) that I need to take to the Java ME platform.
I have two questions:
Are there any good tools to convert C++ code to Java - do some basic stuff so I have a platform to start with. I found...
Started by Neha on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Aside from using some research compiler that can turn C++ into Java bytecode, I'm afraid publish them somewhere on github?
Can you use JNI and call the old C++ code from the new Java codeGenerics is the ....
Templatized code.
|
|
I would like to write some Objective-C code for distribution. What is the best way to package up the output. In Java you can package up your code in a JAR file and distribute that. What would be the equivalent in Objective-C?
The following link is close...
Started by banno on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Objective-C, like C might be overkill; just distributing the source code might be a more sensible and simpler option distribution would by a .dylib....
Abstract bytecodes which must be converted into native machine code by the VM.
|
|
Background: We are designing a physics app, that will do a lot of data analysis, but our focus is integrating physical electronic equipement.
Basically I would like to be able to call root (it's a big data analysis library from CERN written in C++) library...
Started by jb on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
Consider as a custom protocol....
Whenever you call C or C++ code from Java via JNI well become reasonably proficient in the time it would take to wrap the code for Java.
Much better support for invoking native code.
|