473,378 Members | 1,436 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,378 software developers and data experts.

Getting C++ data into an excel graph

Hello,

Let me start off by saying I am not the best C++ program in the
world(and probablly in the room). I have been tasked to take a
histogram and put it into a 2D graph in EXCEL. I have looked around for
wrappers that would help with this but they either won't compile
correctly or are a bit to complicated. I dont need any special
functionality except this one graph from excel. Basically I need to
input 256 numbers and put them on a bar graph from C++.

Thank you for any help or guidance

Apr 1 '06 #1
3 4918
* me******@gmail.com:
Let me start off by saying I am not the best C++ program in the
world(and probablly in the room). I have been tasked to take a
histogram and put it into a 2D graph in EXCEL. I have looked around for
wrappers that would help with this but they either won't compile
correctly or are a bit to complicated. I dont need any special
functionality except this one graph from excel. Basically I need to
input 256 numbers and put them on a bar graph from C++.


C++ is a great language for some things, but not for scripting
applications. To script an application, use a scripting language. For
example, that application's scripting language.

In other respects your question is off-topic in this newsgroup.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Apr 1 '06 #2
On 1 Apr 2006 09:21:58 -0800, me******@gmail.com wrote in
comp.lang.c++:
Hello,

Let me start off by saying I am not the best C++ program in the
world(and probablly in the room). I have been tasked to take a
histogram and put it into a 2D graph in EXCEL. I have looked around for
wrappers that would help with this but they either won't compile
correctly or are a bit to complicated. I dont need any special
functionality except this one graph from excel. Basically I need to
input 256 numbers and put them on a bar graph from C++.

Thank you for any help or guidance


All that standard C++, the only topic discussed here, can do for you
is to write the numbers to a text file. Depending on the organization
of the data, that might be one number per line, or multiple numbers
separated by delimiters like ',' or tab ('\t').

You can then quite easily import the delimited text file into Excel
and have it create your graph.

If this manual step is unacceptable to you, and you want to completely
automate the process, you'll need to ask about it in Windows or
Microsoft specific groups, there's nothing in the standard C++
language to help you.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Apr 1 '06 #3
If this manual step is unacceptable to you, and you want to completely
automate the process, you'll need to ask about it in Windows or
Microsoft specific groups, there's nothing in the standard C++
language to help you.


Alternatively, if execution speed isn't an issue, use C++ to write a
script and save it to a file, make a shell call to run the script. The
shell call is not part of the standard library, however, you should be
able to use the one provided by the platform quite easily.
Apr 2 '06 #4

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

Similar topics

0
by: ourspt | last post by:
Hi, We are working on an ASP.NET (VB.NET) application. In one of the screens of our application, we need to show a graph and for this we are using MS Excel Graph control. We have the graph ...
2
by: Jeff Blee | last post by:
I am hoping someone can help me. I am making a Access 97 app for a person and have run up against a problem to do with MS Graph. There is a table that has a number of data elements and a date field...
22
by: PeteCresswell | last post by:
I've been to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mschrt/html/vbobjtitleobject.asp, but still don't have a clue. For example, I've got a chart object namde...
7
by: Vanessa | last post by:
hi Everyone, I have two questions on exporting data to Excel using ASP (w/o converting formatted excel file into web page and then plug in the dynamic data): 1. Can we export data into...
7
by: vbnetdev | last post by:
My boss wants this done in a day. I would be happy with a week! Anyway, I have a dataset filled with data and need to populate an MS word chart with it when writing a report. Any tutorials or...
1
by: Herbert Chan | last post by:
Hello, I'm subscribing to funds on HSBC, and the fund prices can be found here: http://www.tools.hsbc.com.hk/search/mpf?id=hk+mpf+fundsearch&lang=en&init=true At the moment, I'm copying each...
5
by: grant | last post by:
I'm trying to use a scatter chart to plot level reading for a pump station level sensor. The sensor takes a reading every 4 seconds, and there are 23,000 reading per chart There appears to be...
2
by: LucasLondon | last post by:
Hi, I'm trying to use VBA to extract underlying data from charts in powerpoint to excel, i.e from the underlying powerpoint datasheet that feeds the chart. I've found the macro below on the...
5
by: CoreyReynolds | last post by:
Hello all, I have some VB code that spits an Access query out into Excel and attempts to create a chart from it. The problem is it spits it into a format that Excel can't really eloquently make a...
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...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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...

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.