Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Unix

1 view
Skip to first unread message

Tony DeVoe

unread,
Jul 29, 1997, 3:00:00 AM7/29/97
to

I Currently have several requests to port our existing windows software
for the Unix platform. I have a feeling that it can be done but I am
not sure where to begin. Has anyone had any experiance with this.
Would you like a JOB! Well could you tell me were to start in my quest
for information on how to do this.

Thanks
Tony DeVoe
Merlin data Publishing.

Yatin S Kulkarni

unread,
Jul 29, 1997, 3:00:00 AM7/29/97
to

Hi,
I dont think that there are any manuals or step by step guides for doing
so. You will have to figure out a lot of stuff by yourself, starting with
the User Interface. Secondly you have to figure out which .h files and
libraries to use. Finally you will have to work on all the function calls.
Memory allocation can also be a though thing to port, but Unix offers better
memory management so shouldnt be a major problem.

Bye,

Yatin S Kulkarni
Dept of Computer Science
Michigan State University

Tony DeVoe wrote in article <33DE14...@merlindata.com>...

Ovidiu Popa

unread,
Jul 29, 1997, 3:00:00 AM7/29/97
to

Tony,
I experienced such an adventure. Succesfull porting depends very much on
how the original code was written. C? C++? If C++ then the task is
extremely difficult since object libraries in any UNIX clone and Win have
nothing in common. If C then if the code was written according to an ANSI
compliant compiler, then things become a little simpler (the code is
portable).
More: hope your original code is well structured: this means that the
non-portable code (such as the shell command part) is isolated from the
rest of the code. You have to rewrite it since it makes use for sure on
some UNIX specific system calls.
Best way to start: study the .h include files and search for the win
equivalents. For sure, if your program makes use of graphics, then there
makes no sense for searching an X11 equivalent: you have to rewrite this
part also. A good ideea (on NT): try porting the graphics part (if any)
using the OpenGl library. This comes from the UNIX world.
Nice adventure...let me know by mail some details.

--
Bye,
DON'T GIVE UP UNTIL MALLOC DOES

dr. Ovidiu Popa

Tony DeVoe <tde...@merlindata.com> wrote in article

Leigh Goldstein

unread,
Jul 29, 1997, 3:00:00 AM7/29/97
to

Tony-

I though someone made a version of MFC for Unix platforms. I don't recall
who but you could do a Web search.

That would make porting code much easier, and the vendor would probably
have a lot of expertise and advice about porting MFC code to Unix.

-Leigh

Karl Garrison

unread,
Jul 30, 1997, 3:00:00 AM7/30/97
to

Tony DeVoe wrote:
>
> I Currently have several requests to port our existing windows software
> for the Unix platform.

(I assume you mean from windows 'to' UNIX).

As others mentioned, this depends VERY strongly on how well the GUI and
other
system stuff was isolated form the original code.

If the GUI is well isolated, have you considered trying JAVA (VJ++) for
the GUI
and launching several separate portable C/C++ code subroutines. This
would certainly make future support and cross-platform maintenance MUCH
easier since
JAVA is a cross-platform GUI. (It could even be a good excuse for the
company
to pay for you to learn JAVA).

I just ported 150,000 non-GUI lines of code from UNIX to windows, but
that's
alot easier. Good luck.

Karl

Philippe GERARD

unread,
Jul 31, 1997, 3:00:00 AM7/31/97
to

Hi,
I am using Visual C++ 4.0 with Windows95.
I would like to write a program using the OpenGl
library.

In just including :
#include <GL/gl.h> I got a huge number of errors.

Anybody knows how to start programming OpenGl, What are the
requirements?
Thanks
Philippe
pge...@ece.ucsd.edu

Jeff Thomson

unread,
Aug 1, 1997, 3:00:00 AM8/1/97
to

Philippe GERARD <pge...@ece.ucsd.edu> wrote:

You can do OpenGL programming in Windows 95, provided you have
downloaded and applied Service Pack 1 (go to
http://www.microsoft.com/windows95/default.asp and follow the "Free
Software" link).

A good book to start with is "OpenGL Programming for Windows 95 and
Windows NT" by Ron Fosner; ISBN 0-201-40709-4 (Addison Wesley),
You can see a description of the book at
http://www.awl.com/devpress/titles/40709.html. A good technical
bookstore such as Computer Literacy should have it, or be able to get
it for you. Also, the UCSD bookstore may have it.

Hope this helps.


-- Jeff Thomson
tho...@wgcgps.com

Nikola Midic

unread,
Aug 7, 1997, 3:00:00 AM8/7/97
to

Tony DeVoe wrote:

> I Currently have several requests to port our existing windows
> software

> for the Unix platform. I have a feeling that it can be done but I am
> not sure where to begin. Has anyone had any experiance with this.

> Would you like a JOB! Well could you tell me were to start in my
> quest
> for information on how to do this.
>
> Thanks
> Tony DeVoe
> Merlin data Publishing.

Depends on what sort of a program you would like to port.
Many things that you take for granted with microsoft are simply not
standardized, and thus you cannot expect them to be available under any
ansi-c/c++ platform as such. But then, programming something from a
scratch to accomodate both unices and other platforms can be
accomplished by using wxWindows, a toolking which lets you develop GUIs
for multiple platforms - namely Motif, XView (OpenLook) and Xt on
unices, and Windiows 3.1/95/NT


0 new messages