473,327 Members | 2,055 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,327 software developers and data experts.

Running a C++ Program during the execution of a C Program

Hello,

This is my first time posting on this thread. I was just wondering if anyone had any idea if it is possible to call a C++ program inside the code of a C program.

Also, I need to pass a few variables of the C program into the C++ program. I was also wondering if this is at all possible. I was thinking of just writing the variables to a file from the C program, and reading the variable from the C++ program. But it would be much easier to send them directly.

Thanks!
Feb 9 '10 #1
2 1673
If it helps to know, I am running on Fedora 7 with a standard gcc compiler.

I understand that there are shell commands that I can implement inside my C program, such as system calls, I am just not sure what those look like.

At this point, I am leaning towards writing and reading my variables to a file that can be read by both programs.
Feb 9 '10 #2
Banfa
9,065 Expert Mod 8TB
Look up the standard library call

system(const char *)

in you documentation. You can put variable values on the command line.
Feb 10 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Dave A | last post by:
I have an application that runs in the system tray (taskbar notification area) and it runs at startup. Occasionally I need to release a new version. I have created a deployment project in .Net. ...
3
by: Daragoth | last post by:
Hi, I'm writing a program using Metrowerks CodeWarrior 4.0 that determines the best possible combination of a data set by checking every possible combination. I found there were about 250,000,000...
4
by: news.microsoft.com | last post by:
I have a DOS application that I want to run from within my Windows C# application (eg. c:\> DOSApp "hello"). is it possible? Thanks.
3
by: Chris Fink | last post by:
I am looking for a solution to use in an aspx web application that will redirect the user to a new page and display an animated gif indicating that processing is occurring, and when complete,...
0
by: Void | last post by:
I'm trying to run mappoint locator I get this error: Server Error in '/MMLSService' Application. ---------------------------------------------------------------------------- ---- ...
9
by: BoloBaby | last post by:
I have an extremely vexing problem occurring in a program that I am writing. Consider the following block of code: Dim pDancer As New BEDancer mintIndex = mintIndex + 1 pDancer.DancerName =...
12
by: Ger | last post by:
My dialogue form (sometimes partly, sometimes as a whole) remains visible during a fairly long processing job. The dialogue asks the user to enter some data for the job to follow, and after OK,...
7
by: MgGuigg | last post by:
Hello all, This is my first time posting a question to this forum, so here is hoping I am following protocol. I am scraping the rust off my old Basic programming skills, and have just recently...
5
by: Dave Griffiths | last post by:
Hi All Using vb 2005 I have noticed that sometimes (not everytime) after closing a program I have written it is still running in the task manager. The programs are very short, just small...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.