• C

Migrating the C program from Unix to Win NT 4.0 !

programms : Borland C++ 5.0
source codes are written in C.

questions :
(1) Is there any GOOD Computing Book on migrating the Unix C programm to Win NT ?
(2) What are the precautions I have to take note off as this program(IN Unix) does serial and parallel ( low level interfacing) communications ?(how should i do it in WIN NT 4.0?)

points given : (1) 25
               (2) 50
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You may want to post this question in the Windows topic instead of here in C
Take a look at the Unix to NT porting FAQ: http://www.nentug.org/unix-to-nt/
It will depend a lot on the program. Graphics? Talking to hardware? Sockets? GUI? Threads?
Hey MSSPs! What's your total cost of ownership?

WEBINAR: Managed security service providers often deploy & manage products from a variety of solution vendors. But is this really the best approach when it comes to saving time AND money? Join us on Aug. 15th to learn how you can improve your total cost of ownership today!

There are at least a half dozen books and many articles on 'portable c'.   Do an web search and an amazon search to start with.

Some specific non obvious dependencies to watch for:
big endian/little endian byte alignment
direction of stack growth
Relative sizes of standard types and memory alignment of data
Dynamic memory coagulation and reuse after free
The first thing, though, is to make sure your sources completely pass the toughest lint tests you can find (i.e. Gimpel lint, ... and Unix lint), even if the programs are already working in your native environment.   This alone will save you hours-days of frustration.
It seems this is the right topic area indeed.
jtliewAuthor Commented:
Edited text of question
All the above is good advice. Don't forget that there are several products on the market to simplify migration. We are developing on UNIX (4 flavours) and NT simultaneously, using Hummingbird Exceed, which consists of an X server and development kit. Last year we were using NuTcracker (also a server and XDK) but we found its socket support less than satisfactory - it couldn't support a data tablet with X.

Naturally, you will want to update your program to use native NT library calls sooner or later but products like Exceed and NuTcracker can make the transition easier.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.