By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,897 Members | 1,955 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,897 IT Pros & Developers. It's quick & easy.

How can I convert the C6.0 program of OS/2 platform TO a program in windows2000/xp platform?

P: n/a
HI, all

How can I convert the C6.0 program of OS/2 platform TO windows2000/xp
platform.

The program occurs a lot of errors in Windows 2000/xp when compiled.
And I hope a quick way to solve it, not read the code line by line.

Thank you very much
Coca
Nov 14 '05 #1
Share this Question
Share on Google+
15 Replies


P: n/a
Coca wrote:
HI, all

How can I convert the C6.0 program of OS/2 platform TO windows2000/xp
platform.


You question is off-topic here, since this newsgroup only deals with
non-platform-specific C questions. Here's a link providing some
topicality guidance, as well as some links to newsgroups that may be
better suited for providing help:

http://www.msu.edu/~pfaffben/writing...off-topic.html

Best regards,

Sidney

Nov 14 '05 #2

P: n/a
Coca wrote:
HI, all

How can I convert the C6.0 program of OS/2 platform TO windows2000/xp
platform.

The program occurs a lot of errors in Windows 2000/xp when compiled.
And I hope a quick way to solve it, not read the code line by line.

Thank you very much
Coca


I am unable to locate a question or issue relating to the C language in
your post. Are you sure you have the right group? Questions about
particular C implementations or particular programs are off-topic here.

-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.
Nov 14 '05 #3

P: n/a
Coca wrote:
HI, all

How can I convert the C6.0 program of OS/2 platform TO windows2000/xp
platform.

The program occurs a lot of errors in Windows 2000/xp when compiled.
And I hope a quick way to solve it, not read the code line by line.


You need a more specific question than that. If there are C issues, we can
address them here, but we need to know /what/ we are addressing first. If
there are OS/2-specific functions that are giving you a problem, I'm afraid
you will need to go elsewhere to find what to do about porting your
programs, since none of OS/2 or Windows 2000 or Windows XP functionality is
part of the C programming language.
--
Martin Ambuhl
Nov 14 '05 #4

P: n/a
In article <q1********************************@4ax.com>,
bi******@btamail.net.cn says...
HI, all

How can I convert the C6.0 program of OS/2 platform TO windows2000/xp
platform.

The program occurs a lot of errors in Windows 2000/xp when compiled.
And I hope a quick way to solve it, not read the code line by line.

Thank you very much
Coca


Add a line after line 105 in the first source file (alphabetically,
case insensitive) in the project that says:

/* Compiler, please don't fail me know */

Then recompile. Tada!

--
Randy Howard
2reply remove FOOBAR

Nov 14 '05 #5

P: n/a
Randy Howard <ra**********@foomegapathdslbar.net> spoke thus:
/* Compiler, please don't fail me know */

^^^^

Syntax error for strict Queen's English compilers, although yours may
support this nonstandard extension. Also presumes that your compiler
is your friend and not your enemy.

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Nov 14 '05 #6

P: n/a
Coca <bi******@btamail.net.cn> scribbled the following:
HI, all How can I convert the C6.0 program of OS/2 platform TO windows2000/xp
platform. The program occurs a lot of errors in Windows 2000/xp when compiled.
And I hope a quick way to solve it, not read the code line by line.


Then you're pretty much screwed. There isn't yet an automated tool that
would translate any platform-specific code into any other platform-
specific code.
I would suggest you go over your code and note down the OS/2-specific
parts, find out from the OS/2 API what they mean, try to find similar
parts in the Win2000/XP API, and use them. It will probably take from
a few days to several months, possibly years, depending on how big
your program is. If you can't do it by yourself, hire a consultant.
$500 will probably get the guy (or girl) to talk to you. With any luck
you'll have change left over from $20,000 when the job is done.
What, you were expecting a genie in a bottle?

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"A bee could, in effect, gather its junk. Llamas (no poor quadripeds) tune
and vow excitedly zooming."
- JIPsoft
Nov 14 '05 #7

P: n/a
Joona I Palaste wrote:
Coca <bi******@btamail.net.cn> scribbled the following:
The program occurs a lot of errors in Windows 2000/xp when compiled.
And I hope a quick way to solve it, not read the code line by line.

Then you're pretty much screwed. There isn't yet an automated tool that
would translate any platform-specific code into any other platform-
specific code.
I would suggest you go over your code and note down the OS/2-specific
parts, find out from the OS/2 API what they mean, try to find similar
parts in the Win2000/XP API, and use them. It will probably take from
a few days to several months, possibly years, depending on how big
your program is. If you can't do it by yourself, hire a consultant.
$500 will probably get the guy (or girl) to talk to you. With any luck
you'll have change left over from $20,000 when the job is done.
What, you were expecting a genie in a bottle?


I knew there was a reason that we're so interested in portability.

"portability often pays off in unexpected ways." --Dennis Ritchie

-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.
Nov 14 '05 #8

P: n/a
In article <bt**********@chessie.cirr.com>, at***@nospam.cyberspace.org
says...
Randy Howard <ra**********@foomegapathdslbar.net> spoke thus:
/* Compiler, please don't fail me know */

^^^^

Syntax error for strict Queen's English compilers,


Ack... isn't that always the way?
--
Randy Howard
2reply remove FOOBAR

Nov 14 '05 #9

P: n/a
Coca wrote:

How can I convert the C6.0 program of OS/2 platform TO
windows2000/xp platform.

The program occurs a lot of errors in Windows 2000/xp when compiled.
And I hope a quick way to solve it, not read the code line by line.


On your OS/2 platform, install gcc.

For each file, compile with:

gcc -W -Wall -ansi -pedantic -O1 -c filename.c

Correct the first error.
If unable because of some non-standard usage, move the function
to another file.
Repeat until no errors.

When done, check that by adding the non-standard file to the
system you can recreate the original system.

Now think of ways to implement that non-standard file.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
Nov 14 '05 #10

P: n/a
On Tue, 06 Jan 2004 08:41:37 +0800, in comp.lang.c , Coca
<bi******@btamail.net.cn> wrote:
HI, all

How can I convert the C6.0 program of OS/2 platform TO windows2000/xp
platform.
This is going to be tricky as it probably uses lots of OS/2 system
functions.
The program occurs a lot of errors in Windows 2000/xp when compiled.
And I hope a quick way to solve it, not read the code line by line.


There is no quick way, unless you can buy an OS/2 emulation library
for Win32. I very much doubt that a useful one exists, given that OS/2
was generally disliked by MS.

So I guess you have to analyse each error, and write a dummy function
with the same parameters, which then called a Win32 function which did
the same as the OS/2 one was supposed to.
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 14 '05 #11

P: n/a
Mark McIntyre <ma**********@spamcop.net> wrote in message news:<a6********************************@4ax.com>. ..
There is no quick way, unless you can buy an OS/2 emulation library
for Win32. I very much doubt that a useful one exists, given that OS/2
was generally disliked by MS.

Errrmmm... OS/2 was partly written by MS and went on to form the basis
for WinNT when MS and IBM went their separate ways. You can still see
traces of OS/2 in WinXP today.
Nov 14 '05 #12

P: n/a
On 13 Jan 2004 03:43:19 -0800, ag******@globalnet.co.uk
(Slartibartfast) wrote:
Mark McIntyre <ma**********@spamcop.net> wrote in message news:<a6********************************@4ax.com>. ..
There is no quick way, unless you can buy an OS/2 emulation library
for Win32. I very much doubt that a useful one exists, given that OS/2
was generally disliked by MS.

Errrmmm... OS/2 was partly written by MS and went on to form the basis
for WinNT when MS and IBM went their separate ways. You can still see
traces of OS/2 in WinXP today.


Doesn't change the fact that MS not only disliked OS/2, but
successfully pressured IBM to stop selling the retail version. During
the time they were helping to develop it, they were also developing
Windows, and withdrew from the OS/2 venture as soon as they had a
competing product.

That said, NT, and apparently Win2000 (it's in the help) have an "OS/2
subsystem" which will run 16-bit OS/2 console programs. I don't know
if it's still present in XP.

--
Al Balmer
Balmer Consulting
re************************@att.net
Nov 14 '05 #13

P: n/a
Alan Balmer wrote:
[snip]
That said, NT, and apparently Win2000 (it's in the help) have an "OS/2
subsystem" which will run 16-bit OS/2 console programs. I don't know
if it's still present in XP.


No, it isn't present in XP (I've had occasion to ask).
--
Lew Pitcher, IT Consultant, Application Architecture
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed here are my own, not my employer's)

Nov 14 '05 #14

P: n/a
Alan Balmer <al******@att.net> wrote in message news:<tk********************************@4ax.com>. ..
On 13 Jan 2004 03:43:19 -0800, ag******@globalnet.co.uk
(Slartibartfast) wrote:
Mark McIntyre <ma**********@spamcop.net> wrote in message news:<a6********************************@4ax.com>. ..
There is no quick way, unless you can buy an OS/2 emulation library
for Win32. I very much doubt that a useful one exists, given that OS/2
was generally disliked by MS.

Errrmmm... OS/2 was partly written by MS and went on to form the basis
for WinNT when MS and IBM went their separate ways. You can still see
traces of OS/2 in WinXP today.


Doesn't change the fact that MS not only disliked OS/2, but
successfully pressured IBM to stop selling the retail version. During
the time they were helping to develop it, they were also developing
Windows, and withdrew from the OS/2 venture as soon as they had a
competing product.

That said, NT, and apparently Win2000 (it's in the help) have an "OS/2
subsystem" which will run 16-bit OS/2 console programs. I don't know
if it's still present in XP.


For a product they disliked they stuck with it for an awfully long
time - OS/2 1.3 was the only supported OS for SQL Server for a good
couple of years after WinNT became available.

Never had cause to use NT's OS/2 subsystem, although I knew of its
existence in NT3.x at least. I bet you can still get it for XP if you
know where to look, even if you have to run it in W2K compatibility
mode.
Nov 14 '05 #15

P: n/a
On 14 Jan 2004 07:08:46 -0800, ag******@globalnet.co.uk
(Slartibartfast) wrote:
Alan Balmer <al******@att.net> wrote in message news:<tk********************************@4ax.com>. ..
On 13 Jan 2004 03:43:19 -0800, ag******@globalnet.co.uk
(Slartibartfast) wrote:
>Mark McIntyre <ma**********@spamcop.net> wrote in message news:<a6********************************@4ax.com>. ..
>
>> There is no quick way, unless you can buy an OS/2 emulation library
>> for Win32. I very much doubt that a useful one exists, given that OS/2
>> was generally disliked by MS.
>
>
>Errrmmm... OS/2 was partly written by MS and went on to form the basis
>for WinNT when MS and IBM went their separate ways. You can still see
>traces of OS/2 in WinXP today.
Doesn't change the fact that MS not only disliked OS/2, but
successfully pressured IBM to stop selling the retail version. During
the time they were helping to develop it, they were also developing
Windows, and withdrew from the OS/2 venture as soon as they had a
competing product.

That said, NT, and apparently Win2000 (it's in the help) have an "OS/2
subsystem" which will run 16-bit OS/2 console programs. I don't know
if it's still present in XP.


For a product they disliked they stuck with it for an awfully long
time - OS/2 1.3 was the only supported OS for SQL Server for a good
couple of years after WinNT became available.


I don't remember the dates, but that was likely the Sybase SQL Server,
before MS modified it. Sybase later regretted making that deal. The
product was actually available for other OS's, but MS sold only the
OS/2 version.
Never had cause to use NT's OS/2 subsystem, although I knew of its
existence in NT3.x at least. I bet you can still get it for XP if you
know where to look, even if you have to run it in W2K compatibility
mode.


--
Al Balmer
Balmer Consulting
re************************@att.net
Nov 14 '05 #16

This discussion thread is closed

Replies have been disabled for this discussion.