Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Need advice on porting application to C++

Reply
Thread Tools

Need advice on porting application to C++

 
 
Ramon F Herrera
Guest
Posts: n/a
 
      10-30-2007
Hello:

My application has three fundamental aspects:

(1) It is heavily GUI oriented with palettes, and visual
"communication" between the app and the user by graphical means, much
like an IDE (but much simpler).

(2) It uses some OCR libraries written by a 3rd. party in (Windows-
oriented, I am afraid) C++

(3) I would like to keep it as portable and OS independent as
possible.

I am a fairly proficient C and Java programmer, and I am pretty sure I
can traverse the C++ learning curve.

Due to the requirement (3) above, the application was written in Java,
but it also contains some JNI code (per (2) above). This jumping back
and forth between native code and pure Java really bugs me.

So... I am considering rewriting the whole thing in C++. That way the
program will always be in native mode without the JNI nonsense.

However, I would like to stay far away from any Microsoftisms, as the
app. currently runs on Windows but I would like to port it easily
(famous last words) to Unix/Linux/Mac.

I guess I need to keep clear off things like ATL and stick with STL,
right? (barely know what those are).

Perhaps the most critical issue is that of the GUI aspects. I am
vaguely familiar with some GUI framework which is multi-platform,
being used by WireShark (formerly Ethereal) I believe? Hmm, I wonder
what GUI framework is used by the Firefox developers?

Any tips, pointers, gotchas, are most welcome...

TIA,

-Ramon

 
Reply With Quote
 
 
 
 
Ioannis Gyftos
Guest
Posts: n/a
 
      10-30-2007
On Oct 30, 9:08 am, Ramon F Herrera <(E-Mail Removed)> wrote:
> Hello:
>
> My application has three fundamental aspects:
>
> (1) It is heavily GUI oriented with palettes, and visual
> "communication" between the app and the user by graphical means, much
> like an IDE (but much simpler).
>
> (2) It uses some OCR libraries written by a 3rd. party in (Windows-
> oriented, I am afraid) C++
>
> (3) I would like to keep it as portable and OS independent as
> possible.
>
> I am a fairly proficient C and Java programmer, and I am pretty sure I
> can traverse the C++ learning curve.
>
> Due to the requirement (3) above, the application was written in Java,
> but it also contains some JNI code (per (2) above). This jumping back
> and forth between native code and pure Java really bugs me.
>
> So... I am considering rewriting the whole thing in C++. That way the
> program will always be in native mode without the JNI nonsense.
>
> However, I would like to stay far away from any Microsoftisms, as the
> app. currently runs on Windows but I would like to port it easily
> (famous last words) to Unix/Linux/Mac.
>
> I guess I need to keep clear off things like ATL and stick with STL,
> right? (barely know what those are).
>
> Perhaps the most critical issue is that of the GUI aspects. I am
> vaguely familiar with some GUI framework which is multi-platform,
> being used by WireShark (formerly Ethereal) I believe? Hmm, I wonder
> what GUI framework is used by the Firefox developers?
>
> Any tips, pointers, gotchas, are most welcome...
>
> TIA,
>
> -Ramon


Using STD should be portable. I am not aware of a major platform
without it, but I guess on RISC architecture or whatever it might not
be present.

As far as Firefox goes, it uses GTK+, which is used by most GNOME
applications, and is GPLed. Another similar cross-platform library is
Qt, used by KDE applications, and has a dual license for either
commercial or open-source use.

 
Reply With Quote
 
 
 
 
BobR
Guest
Posts: n/a
 
      10-30-2007

Ramon F Herrera wrote in message...
>
> Any tips, pointers, gotchas, are most welcome...


wxWidgets URL: http://www.wxwidgets.org

Get "Thinking in C++", 2nd ed. Volume 1&2 by Bruce Eckel
(available for free here. You can buy it in hardcopy too.):
http://www.mindview.net/Books/TICPP/...ngInCPP2e.html

FAQ http://www.parashift.com/c++-faq-lite

--
Bob R
POVrookie


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Porting a C++ application to a Web application Bartholomew Simpson ASP .Net 2 06-19-2007 03:21 PM
Porting ASP (WInDNA) application to .Net Ritesh ASP .Net 2 09-23-2005 06:02 AM
Porting a WebLink application on Windows 2000 Oriane ASP .Net 0 07-06-2004 12:52 PM
Porting over an ASP.NET application Bijoy Naick ASP .Net 6 05-10-2004 12:46 PM
Advice for Porting existing VB.NET App to ASP.Net Web Application Nate ASP .Net 2 02-18-2004 01:18 AM



Advertisments