473,608 Members | 2,457 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.ed u .

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.ed u
Phone
Office : 330-202-3539
Home : 330-287-7524
Fax : 330-263-3686
Aug 1 '05 #1
1 2252
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
2298
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 need to: 1. Click a submit button on an asp page, calling another page that saves the contents of that form to a database and then displays
39
6513
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. When it completes, it can call a success, or a failure function. The names of these success, or failure functions will differ, and I'd like to know how I can pass the name of a function to my tool, and how my tool can call the function, using that...
188
7138
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 - non-deterministic destructors - Objects can't exist on the stack - Type / Reference Types
6
4088
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 appreciate if someone can tell me how to resolve this problem. Main ( Args ) { Form1 f1 = new Form1();
1
1961
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 statement. Help.ShowHelp(Parent:=Me, url:=Me.HELP_URL_PRE & Me.myWorker.HelpFile) How do I get it to go away when the program exits? Now when I quit the program that I called it form the help file is sill displayed. Is there a way to get a handle...
4
2308
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 function doesn't load the User interface to be viewable and the code I call the exit function in the load function doesn't really help in my cause. I like to call exit right after the form has been loaded, is there such a function?
24
2776
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 menu in each one? I have tried using the DIM statement with .ShowDialog, however, the forms are not recognized as they are listed in seperate projects. Please advise. Thanks, Dr. S.
3
7299
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 program1a.c after the function is done. I have #include "program1b.c" in program1a.c. Do I also need one in program1b.c to include program1a.c? Right now I am getting a segmentation fault when it reaches the point where program1a.c calls a function...
2
2756
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 programs as well but I these are getting phased out). I need to call this program, pass the logged in user name, and fill in essential data from the calling program into the called program. I don't really want to create a deviation form for all...
0
8059
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
8495
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...
0
8470
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8145
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
8330
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...
0
5475
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4023
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1589
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1328
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.