For Programmers: Free Programming Magazines  


Home > Archive > VC Language > January 2006 > Large Scale Porting









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Large Scale Porting
Jack

2006-01-26, 4:03 am

Sorry, this question is not specific to Visual C++, if you know where I
could get better response, please show me the place. :) This is quite
urgent.

I have a set of programs which was originally written in Borland C++ builder
under windows xp. I want to fully or partially port to Fedora 4. My
colleagues said it wasn't possible. If so, can I just "borrow" part of the
logic by compiling it partially? like gcc -c abc.cpp then
ld main.o abc.o, The base of the program is also in Object Pascal. I also
want to know except calling conventions and the GUI, what other parts do I
have to look after in order to "borrow" the logic?
Thanks
Jack


Ulrich Eckhardt

2006-01-26, 4:03 am

Jack wrote:
> I have a set of programs which was originally written in Borland C++
> builder under windows xp. I want to fully or partially port to Fedora 4.
> My colleagues said it wasn't possible. If so, can I just "borrow" part of
> the logic by compiling it partially?



Depends. Borland C++ is one thing, the other thing is the required APIs,
e.g. the win32 API or Borland's class libraries. Using WINE (winehq.org),
you get an implementation of the win32 API on top of POSIX/X11. For other
APIs you'd have to find similar equivalents. I'd make a list of used
APIs/libraries and ask for equivalents or replacements in a more
Fedora-oriented place.

Uli

Bruno van Dooren

2006-01-26, 4:03 am

You have quite a task in front of you:

- you'll have to redesign the GUI, and integrate it with the software.
- any platform specific functionality will have to be re-implemented:
semaphores, pipes, shared memory, ... have to be ported from win32 to linux
IPC. believe me when i say that you will do a lot of cursing.
- any database functionality will likely not be compatible. the borland
database engine does not run on linux.
- object pascal? there may or may not be a gcc plugin for that.

you can borrow the core logic from the original program, as long as it does
not use win specific libraries. then rebuild the rest of the program on top
of that core.
but still, you will have a lot of work.

good luck.

kind regards,
Bruno.



"Jack" wrote:

> Sorry, this question is not specific to Visual C++, if you know where I
> could get better response, please show me the place. :) This is quite
> urgent.
>
> I have a set of programs which was originally written in Borland C++ builder
> under windows xp. I want to fully or partially port to Fedora 4. My
> colleagues said it wasn't possible. If so, can I just "borrow" part of the
> logic by compiling it partially? like gcc -c abc.cpp then
> ld main.o abc.o, The base of the program is also in Object Pascal. I also
> want to know except calling conventions and the GUI, what other parts do I
> have to look after in order to "borrow" the logic?
> Thanks
> Jack
>
>
>

S7Solutions

2006-01-27, 4:01 am

Hello there

I think we @ S7 (s7solutions.com) can help here :-) We have written the
whole VC++ [OWL compatible i.e Borland compatible] layer which makes
your Windows code run on Linux as well as any Unix and even Itanium
Linux & HP!!

Also we have tools which seperates out the part that is not required to
be ported [generic that works on all platforms] and ports only that
code that needs to be ported. We have done this similar service for
many fortune 500 companies. Please have a look at our website

Best Regards
Manju
S7 Software Solutions
Re-Defining Cross-Platform Porting, Migration & Development
manjum@s7solutions.com

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com