Solved

Migrating the C program from Unix to Win NT 4.0 !

Posted on 1998-03-18
7
210 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 3

Expert Comment

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

Expert Comment

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

Expert Comment

by:emmons
ID: 1257753
It will depend a lot on the program. Graphics? Talking to hardware? Sockets? GUI? Threads?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 1

Expert Comment

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

Expert Comment

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

Author Comment

by:jtliew
ID: 1257756
Edited text of question
0
 
LVL 3

Accepted Solution

by:
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.
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

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 (http://en.wikipedia.org/wiki/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 how to use strings and some functions related to them 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.

622 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