Click here to Skip to main content
15,894,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: one doubt Pin
theCPkid23-Sep-09 1:40
theCPkid23-Sep-09 1:40 
AnswerRe: one doubt Pin
KarstenK23-Sep-09 1:55
mveKarstenK23-Sep-09 1:55 
AnswerRe: one doubt Pin
jon_fallon23-Sep-09 2:25
jon_fallon23-Sep-09 2:25 
GeneralRe: one doubt Pin
Nuri Ismail23-Sep-09 3:02
Nuri Ismail23-Sep-09 3:02 
AnswerRe: one doubt Pin
Richard MacCutchan23-Sep-09 3:02
mveRichard MacCutchan23-Sep-09 3:02 
QuestionRotate Metafile displayed in a Static Control Pin
Erik22-Sep-09 23:47
Erik22-Sep-09 23:47 
QuestionWhy Messagebox display twice It's Urgent Pin
jadhavjitendrar22-Sep-09 22:59
jadhavjitendrar22-Sep-09 22:59 
AnswerRe: Why Messagebox display twice It's Urgent [modified] PinPopular
CPallini22-Sep-09 23:39
mveCPallini22-Sep-09 23:39 
AnswerRe: Why Messagebox display twice It's Urgent Pin
theCPkid23-Sep-09 1:25
theCPkid23-Sep-09 1:25 
AnswerRe: Why Messagebox display twice It's Urgent Pin
David Crow23-Sep-09 4:41
David Crow23-Sep-09 4:41 
QuestionHow to write mic data to .wav file ? Pin
Souldrift22-Sep-09 22:18
Souldrift22-Sep-09 22:18 
AnswerRe: How to write mic data to .wav file ? Pin
Souldrift22-Sep-09 22:39
Souldrift22-Sep-09 22:39 
QuestionString split functionality Pin
NarVish22-Sep-09 21:07
NarVish22-Sep-09 21:07 
AnswerRe: String split functionality Pin
chandu00422-Sep-09 21:09
chandu00422-Sep-09 21:09 
AnswerRe: String split functionality Pin
Hamid_RT22-Sep-09 21:30
Hamid_RT22-Sep-09 21:30 
GeneralRe: String split functionality Pin
NarVish22-Sep-09 21:37
NarVish22-Sep-09 21:37 
GeneralRe: String split functionality Pin
CPallini22-Sep-09 22:09
mveCPallini22-Sep-09 22:09 
GeneralRe: String split functionality Pin
NarVish22-Sep-09 23:59
NarVish22-Sep-09 23:59 
GeneralRe: String split functionality Pin
CPallini23-Sep-09 0:25
mveCPallini23-Sep-09 0:25 
GeneralRe: String split functionality Pin
Richard MacCutchan23-Sep-09 0:30
mveRichard MacCutchan23-Sep-09 0:30 
AnswerRe: String split functionality Pin
CPallini22-Sep-09 21:37
mveCPallini22-Sep-09 21:37 
QuestionMessage box display twice Pin
jadhavjitendrar22-Sep-09 20:51
jadhavjitendrar22-Sep-09 20:51 
AnswerRe: Message box display twice Pin
theCPkid22-Sep-09 21:40
theCPkid22-Sep-09 21:40 
Questionautomation files and excel Pin
prithaa22-Sep-09 20:40
prithaa22-Sep-09 20:40 
Hello,

I have xl5en32.h type library for automation . The header file contains classes like

appliction
workbooks
workbook
charts
chart

I have gone through the example of drawing charts in VC++ using automation . In each example they have the following code

_Application app;
_Workbook newBook;
Workbooks books;
Worksheets sheets;
_Worksheet newSheet;
Charts charts;
_Chart newChart;
COleVariant vOpt((long)DISP_E_PARAMNOTFOUND, VT_ERROR);
//Create Excel server (start Excel)
if(!app.CreateDispatch("Excel.Application"))
{
AfxMessageBox("Can’t start Excel server!");
return;
}
app.put_Visible(true); //set Excel visible
app.put_UserControl(TRUE); //user can operate Excel
books = app.get_Workbooks();
newBook=books.Open("C:\\mynew.xls",vOpt, vOpt, vOpt, vOpt, vOpt,
vOpt, vOpt, vOpt, vOpt, vOpt,vOpt, vOpt,vOpt,vOpt);
newBook = books.Add(vOpt);
sheets = newBook.get_Sheets();
newSheet = sheets.get_Item(COleVariant((short)1));
charts = newBook.get_Charts();
------------------------------------------------
but the above classes are are missing in xl5en32.h type library
and all the functions return COleVariant

How shd i go about writing code for charts ?


Prithaa
QuestionHelp with regex in VS2008 Pin
theCPkid22-Sep-09 20:22
theCPkid22-Sep-09 20:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.