Migrating the C program from Unix to Win NT 4.0 !

Posted on 1998-03-18
Last Modified: 2011-09-20
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
Question by:jtliew

Expert Comment

ID: 1257751
You may want to post this question in the Windows topic instead of here in C

Expert Comment

ID: 1257752
Take a look at the Unix to NT porting FAQ:

Expert Comment

ID: 1257753
It will depend a lot on the program. Graphics? Talking to hardware? Sockets? GUI? Threads?
Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.


Expert Comment

ID: 1257754
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.

Expert Comment

ID: 1257755
It seems this is the right topic area indeed.

Author Comment

ID: 1257756
Edited text of question

Accepted Solution

braveheart earned 70 total points
ID: 1257757
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.

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
UPD maximums on Red Hat 6 110
Parsing XML instructions in Java/any other language.... 3 104
Line meaning 9 82
Arduino EDI - Programming language 3 80
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode ( They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now