473,788 Members | 2,828 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need advice on porting application to C++

Hello:

My application has three fundamental aspects:

(1) It is heavily GUI oriented with palettes, and visual
"communicat ion" 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

Oct 30 '07 #1
2 1338
On Oct 30, 9:08 am, Ramon F Herrera <ra...@conexus. netwrote:
Hello:

My application has three fundamental aspects:

(1) It is heavily GUI oriented with palettes, and visual
"communicat ion" 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.

Oct 30 '07 #2

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
Oct 30 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
3308
by: Wolfgang Keller | last post by:
Hello, as a non-developer I am currently participating in an industrial "research" project to develop a so-called "web application". This application serves at the same time as middleware to connect several other "conventional" enterprise-applications such as ERP, SCADA etc. and to provide a GUI frontend to the users. The developers are into Struts, Enterprise Java Beans and the like, so it will be entirely implemented in Java with all...
10
2653
by: Beach Potato | last post by:
Dear Y'all: I'm about to start porting a big old project written in anscient version of Delphi to something more stable, robust, supportable and maybe even portable. Since I haven't seriously touched C for large implementations, I'm seeking advice on what to use for development. My ultimate goal is to spend as less time on it as possible. I'll be writing it in Windows 32-bit environment, probably Win2000 or Win98. Planning to use a...
28
2484
by: Jed | last post by:
Hello to all! I have a couple of projects I intend starting on, and was wondering if someone here could make a suggestion for a good compiler and development environment. My goals are as follows: 1. Develop the project code on XP.
4
2396
by: Chris Travers | last post by:
Hi all; A few years ago, I set about porting a PHP application from MySQL to PostgreSQL, after realizing that MySQL wasn't going to be able to handle it. In order to do this, I built a light, fast database abstraction layer which conforms to the behavior of the MySQL functions in PHP. This means that a large amount of porting work could be made simple using this porting layer if the application was originally used PHP's native MySQL...
1
1613
by: Sunanda | last post by:
Hi, I am a newbie to .Net. I have an application in running in linux, a set of .c and .h files. I also have a makefile in linux to create the executable. I want to port this to windows (.Net environment).
2
1269
by: rawCoder | last post by:
Hi all, I have an application in visual basic 6 which communicates with servers written in ANSI C++ using a C++ ( non COM ) dll by passig data through functions in UDT and receiving data back through events posted back to UI from DLL. I was interested in porting the system to VB.NET and VC.NET / VC ++ with an eye on any possible speed loss.
2
1402
by: Nate | last post by:
I am looking for any advice on migrating an existing VB.Net application to ASP.Net. What is the easiest method for moving the GUI forms to ASP.Net? The forms only use standard winform controls that come with VS studio 2003. What kind of problems should I Expect? Any pitfalls? Thanks.
2
1204
by: Ritesh | last post by:
Hi All, It will be great if any one of you can suggest which strategy to take for porting an Asp application to Asp.Net. Just to give you an idea about the present architecture of the application: GUI: is in Asp
2
3845
by: sandip desale | last post by:
Dear All, We have a Tcl/Tk application written using Python 2.2. Using this application we want to call some customizable Java APIs. I tried porting Tcl/Tk application to Jython but not able to do the same as TKinter library is not available with JYthon. Can you please help me in porting Tkinter application to Jython? Also kindly let me know how to do the same. Thanks & Regards, Sandip Desale
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10112
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9969
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5399
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.