473,395 Members | 1,616 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Another program call - Need help

Hi everyone.

I am JJ Park. I got some questions in C++. First of all, my English is not
perfect, because I am foreigner.

I have got C++ code, which have no syntex error in Visual C++ ver6.0
compiling, however, this code was made in Sun systems (UNIX based). I shall
change the C++ code unix > Window based. And this code contain "calling
another program for data calculating and return results for calculating in
next steps in C++ code". i.e. the C++ code call another program by
system("PROGRAM"), and return value, thus I changed, however, I would not
work.

My questions are :

1. Can I change the C++ code under Unix environment to Windows with minor
code change?

2. If answer of Q1 is Yes, how? (please I am beginner of C++, I need help)

I used "system" code with ArcGIS GRID, with in loop code, however, there
were lots of GRID opened and didn't closed. At last my computer is memory
error and rebooted itself. In the unix system, the C++ code ran well.

3. I used same code for calling GRID program, but they didn't closed, how
can I solve this problem?

Please. I need your help. If you wanna help me, please via E-mail
pa******@osu.edu .

Thank you.
--
Sincerely yours.

JJ Park,
The OSU, OARDC- Department of Entomology
203D Throne Hall,
1680 Madison Avenue,
Wooster, OH, 44691, USA.

E-mail : pa******@osu.edu
Phone
Office : 330-202-3539
Home : 330-287-7524
Fax : 330-263-3686
Aug 1 '05 #1
1 2239
Your questions do not relate to C++ per-se.
I shall change the C++ code unix to Window based. And this code contain "calling
another program for data calculating and return results for calculating in
next steps in C++ code". i.e. the C++ code call another program by
system("PROGRAM"), and return value, thus I changed, however, I would not
work.
The program that's being invoked for data calculation itself might be a
unix specific executable and might not run on windows.
My questions are :
1. Can I change the C++ code under Unix environment to Windows with minor
code change?
2. If answer of Q1 is Yes, how? (please I am beginner of C++, I need help)


Yes, you can port it to windows. For that you'd have to use windows
specific API to do the work for you. Please post this in a Windows
programming newsgroup to get precise answers.

Regards,
Srini

Aug 2 '05 #2

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

Similar topics

3
by: fig000 | last post by:
Hi, I'm relatively new to Javascript so please bear with me on what might sound like silly questions. This is what I want to do: I'm working in classic asp (I have to for this project). I...
39
by: Randell D. | last post by:
Folks, I'm sure this can be done legally, and not thru tricks of the trade - I hope someone can help. I'm writing a 'tool' (a function) which can be used generically in any of my projects. ...
188
by: christopher diggins | last post by:
I have posted a C# critique at http://www.heron-language.com/c-sharp-critique.html. To summarize I bring up the following issues : - unsafe code - attributes - garbage collection -...
6
by: nadeem_far | last post by:
Hello All, I am working on a .Net desktop application and I am having problem displaying a form. I am using C# and version 1.1 of the framework. here is how the code looks likes and I will...
1
by: Michael D. Reed | last post by:
I am using the help class to display a simple help file. I generated the help file using Word and saving it as a single page Web page (.mht extension). I show the help file with the following...
4
by: Joe | last post by:
Is there another Form1_Load function? I need to call a function to exit but I want to have it called right after the User interface have been loaded and appeared on screen. Right now the Load...
24
by: =?Utf-8?B?RHIuIFMu?= | last post by:
I am incorporating three existing programs into a new "all in one" program. I have added the three projects to the new all in one project. How do I instruct the new initial menu to launch the main...
3
by: JWest46088 | last post by:
I'm having a little trouble finishing this program. I don't know how to call a function that's in another program. I need program1a.c to call a function in program1b.c and return control back to...
2
by: John Wright | last post by:
I have a central program I am starting to develop that will track processing deviations. This program is VB 2008 and needs to be called from VB 2005 programs and VB2008 programs (we have some VB 6...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...

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.