Solved

Migrating the C program from Unix to Win NT 4.0 !

Posted on 1998-03-18
7
201 Views
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
 
0
Comment
Question by:jtliew
7 Comments
 
LVL 3

Expert Comment

by:rmichels
Comment Utility
You may want to post this question in the Windows topic instead of here in C
0
 
LVL 5

Expert Comment

by:yonat
Comment Utility
Take a look at the Unix to NT porting FAQ: http://www.nentug.org/unix-to-nt/
0
 
LVL 4

Expert Comment

by:emmons
Comment Utility
It will depend a lot on the program. Graphics? Talking to hardware? Sockets? GUI? Threads?
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 1

Expert Comment

by:Nexial
Comment Utility
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.
0
 
LVL 5

Expert Comment

by:julio011597
Comment Utility
It seems this is the right topic area indeed.
0
 

Author Comment

by:jtliew
Comment Utility
Edited text of question
0
 
LVL 3

Accepted Solution

by:
braveheart earned 70 total points
Comment Utility
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.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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 (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

762 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

8 Experts available now in Live!

Get 1:1 Help Now