Original Post
I would like to create an application that the GUI is in java, but all the logic is in regular CPP. Is this possible?
Quote:
Original post by Alpha_ProgDes
Maybe (easily) with VS 2005. Other than that, it sounds like alot of complicated code to glue them together.
Quote:
Original post by Addictman
Like SiCrane said, you can use JNI to execute logic in c/c++.
You can also use a GUI designer like this:
https://abeille.dev.java.net/
which lets you store your GUI layout as an xml file.
If you're doing this out efficiency reasons (game-related),
c# doesn't offer alot of advantages over java.
Quote:
Original post by The C modest god Quote:
Original post by Addictman
Like SiCrane said, you can use JNI to execute logic in c/c++.
You can also use a GUI designer like this:
https://abeille.dev.java.net/
which lets you store your GUI layout as an xml file.
If you're doing this out efficiency reasons (game-related),
c# doesn't offer alot of advantages over java.
What I want to prevent is reverse engineering.
So what will be the best solution given this requirement?
C# or java?
Does JNI has performance issues running a CPP compiled code?
It executes source code or compiled code?
Quote:
Original post by The C modest god Quote:
Original post by Addictman
Like SiCrane said, you can use JNI to execute logic in c/c++.
You can also use a GUI designer like this:
https://abeille.dev.java.net/
which lets you store your GUI layout as an xml file.
If you're doing this out efficiency reasons (game-related),
c# doesn't offer alot of advantages over java.
What I want to prevent is reverse engineering.
So what will be the best solution given this requirement?
C# or java?
Does JNI has performance issues running a CPP compiled code?
It executes source code or compiled code?
Quote:
Original post by SamLowry Quote:
Original post by The C modest god Quote:
Original post by Addictman
Like SiCrane said, you can use JNI to execute logic in c/c++.
You can also use a GUI designer like this:
https://abeille.dev.java.net/
which lets you store your GUI layout as an xml file.
If you're doing this out efficiency reasons (game-related),
c# doesn't offer alot of advantages over java.
What I want to prevent is reverse engineering.
So what will be the best solution given this requirement?
C# or java?
Does JNI has performance issues running a CPP compiled code?
It executes source code or compiled code?
C# will indeed not offer any advantages of java, performance-wise. I suggested C# because
* it looks very much like java, you won't have to learn a lot of new stuff
* the IDE, Visual Studio, together with the library offer excellent GUI possibilities + very easy to use
* Making C++ and C# work together is relatively easy using .NET (I would think much easier than java+C++ with JNI, since .NET was created with language-cooperation explicitly in mind)
Regarding reverse engineering: both java and C# compile to intermediate code, but I don't think that is a problem, I'm sure there are tools to make reverse engineering very hard (you can't make it impossible, with any language).
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more