Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need ur suggestion: Comparison b/w VC++ and Java Interface Designing  RSS feed

 
matif923
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AOA all,
I need some ideas and opinions from all of u.
Basically i am working on C++ application having C++ lib and Interface as well develop on VC++.
Now we want to make this application platform independent as some of our users might have Unix
and others.
So could all of u please give me idea if i develop interface in Java and using C++ libraries, wat
will be effect on performance and how enough Java interface designing is for desktop application as
compare to VC++ interface designing.
I need ur suggestion as soon as possible.
Thanx for ur ideas and help.

Best Regards
Atif
 
Thomas Smets
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Usually the so-called performance issues do not exist as such in Java. It would at worst for a properly designed app as sowly as a VB app 2 years ago !
Now the worst can be done for our app to be unable to run properly ! what you should considere is the usual tips & tricks. To name a few :
  • Late initialization
  • Remove unecessary references
  • Object re-use
  • Avoid product (make your own Custom Component, instead)
  • Use proper Event handling
  • Reduce as much as possible too generic code (you asked for speed not for proper design --> interfaces are slow)
  • Avoid very large screens (like Tabbed panes)

  • You can also use the following references
  • Java Performance & Scalability - Volume 1 by Dov BULKA, ISBN 0-201-70429-3 @ Addison - Wesley
  • Java Performance Tuning by Jack SHIRAZI0-596-00015-4, @ O'Reilly


  • Hope this helps a bit.
    Maybe comin with more specific question I will be able to able more ?
    thomas,
     
    Nathan Pruett
    Bartender
    Posts: 4121
    IntelliJ IDE Java Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    matif923,

    Please re-register with a user name that follows the JavaRanch User Name Guidelines. User names are required to be in the format "First Name" + space + "Last Name".

    Thanks,
    -Nate
     
    Nathan Pruett
    Bartender
    Posts: 4121
    IntelliJ IDE Java Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    To interface between Java and C++, you'll need to read up on JNI (Java Native Interface) to make calls directly between Java and native code. You'll have to compile one version of your C++ code for each OS you plan to distribute it on.

    On the other hand, you could make a distributed app and have a Java client talking to a C++ server through CORBA...

    -Nate
     
    It is sorta covered in the JavaRanch Style Guide.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!