473,790 Members | 2,534 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
15 1667
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
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
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
In article <q1************ *************** *****@4ax.com>,
bi******@btamai l.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
Randy Howard <ra**********@f oomegapathdslba r.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)cybers pace.org | don't, I need to know. Flames welcome.
Nov 14 '05 #6
Coca <bi******@btama il.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.hel sinki.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
Joona I Palaste wrote:
Coca <bi******@btama il.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.

"portabilit y 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
In article <bt**********@c hessie.cirr.com >, at***@nospam.cy berspace.org
says...
Randy Howard <ra**********@f oomegapathdslba r.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
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********@yah oo.com) (cb********@wor ldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home .att.net> USE worldnet address!
Nov 14 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
16429
by: Khuong Dinh Pham | last post by:
I have the contents of an image of type std::string. How can I make a CxImage object with this type. The parameters to CxImage is: CxImage(byte* data, DWORD size) Thx in advance
1
1772
by: ChaimG | last post by:
Hi everyone, I Run DB Application using Access97 (with DAO) on XP Client and Windows2000 Server (Version5, SP4) with active directory. A Simple "Select *" Query takes no time ( less then second), but query with "Group By " Expresion ( Select CustNum From Customers Group By CustNum) takes more then 30 seconds to perform. This Problem accures only with XP Client on Windows2000 server. The same "Group By " Querys takes less then second On...
1
1170
by: Turk | last post by:
Is it possible to deploy ASP.NET 2 proj onto PWS on windows2000 pro. The app runs fne in vstudio2005, but unable to configure asp.net 2 on PWS on my windows2000 development box. Is this possible? Thansks
1
1577
by: shivapadma | last post by:
hello, 1: what are the advantages of windowsxp over windows2000 2:can we able to open an application of windows2000 in windowsxp
37
5084
by: Vince C. | last post by:
Hi all. I've installed Bloodshed Dev-C++ on a Windows 2000 SP4 machine. I'm using MinGW 3.4.2. I'd like to temporarily disable standard functions to write to stderr, i.e. for instance redirect stderr to a temporary file (or /dev/null but is there an equivalent under Windows? Is it "nul:") and then to *restore* the default stderr so that standard library functions that write to stderr produce output again.
21
7523
by: Aman JIANG | last post by:
hi I need to do this (convert double to string) fast, safe and portable. Is there any way to do this ? Except the ways following: 1. C++ I/O stream, stringstream (and boost::lexical_cast) 2. sprintf (and its brothers) 3. any nonstandard C/C++ functions
5
8368
by: Jonathan Sachs | last post by:
I'm interested in experienced .Net developers' opinions about whether I should convert an existing Java program to J# or C#. I thought this was a no-brainer until I discovered that with the release of V.S. 2008, Microsoft has ceased to develop or publish J#. That makes the question much more difficult. The program in question is one that I began several years ago but abandoned because it required integration with Microsoft Office, and...
0
1370
by: Andy202 | last post by:
I have a program that sends and receives data via a TCP/IP socket, but I would like to convert this application to a Shared Library so that other programs can use this library to send() and receive() data. This is on a Unix platform using a gcc compiler. Forgetting about the send option for the present, I have the typically:- // The client program for the application. #include "initComms.h" int main (int argc, char **argv)
0
9666
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10412
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10142
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9986
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7529
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4093
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.