Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can I include a pure "C" module in a MFC project Pin
Cesario Simoes, jr8-May-03 4:55
Cesario Simoes, jr8-May-03 4:55 
GeneralExcel automation Pin
aluna7-May-03 12:21
aluna7-May-03 12:21 
GeneralRe: Excel automation Pin
Stephane Rodriguez.8-May-03 1:10
Stephane Rodriguez.8-May-03 1:10 
GeneralAdding Splash Screen in DLL Pin
iltallman7-May-03 10:55
iltallman7-May-03 10:55 
GeneralRe: Adding Splash Screen in DLL Pin
valikac7-May-03 11:28
valikac7-May-03 11:28 
GeneralRe: Adding Splash Screen in DLL Pin
Joe Woodbury7-May-03 11:58
professionalJoe Woodbury7-May-03 11:58 
GeneralWizards Pin
dave_long7-May-03 9:58
dave_long7-May-03 9:58 
GeneralRe: Wizards Pin
David Crow7-May-03 10:05
David Crow7-May-03 10:05 
Questionhow to display icon in system tray Pin
djghazi7-May-03 9:49
djghazi7-May-03 9:49 
AnswerRe: how to display icon in system tray Pin
David Crow7-May-03 10:03
David Crow7-May-03 10:03 
GeneralChanging file properties Pin
john john mackey7-May-03 9:13
john john mackey7-May-03 9:13 
GeneralRe: Changing file properties Pin
David Crow7-May-03 9:30
David Crow7-May-03 9:30 
GeneralRe: Changing file properties Pin
john john mackey7-May-03 9:59
john john mackey7-May-03 9:59 
GeneralListview Font Pin
Anthony98877-May-03 8:57
Anthony98877-May-03 8:57 
GeneralRe: Listview Font Pin
basementman7-May-03 10:48
basementman7-May-03 10:48 
Questionuse ShellExecute ? Pin
_skidrow_vn_7-May-03 8:56
_skidrow_vn_7-May-03 8:56 
AnswerRe: use ShellExecute ? Pin
David Crow7-May-03 9:28
David Crow7-May-03 9:28 
GeneralRe: use ShellExecute ? Pin
_skidrow_vn_7-May-03 9:39
_skidrow_vn_7-May-03 9:39 
GeneralRe: use ShellExecute ? Pin
_skidrow_vn_7-May-03 9:46
_skidrow_vn_7-May-03 9:46 
GeneralCArchiveException Pin
Shay Harel7-May-03 8:46
Shay Harel7-May-03 8:46 
GeneralRe: CArchiveException Pin
David Crow7-May-03 8:54
David Crow7-May-03 8:54 
GeneralRe: CArchiveException Pin
Anonymous7-May-03 8:59
Anonymous7-May-03 8:59 
GeneralRe: CArchiveException Pin
basementman7-May-03 10:55
basementman7-May-03 10:55 
GeneralAdding Controls Dynamically to CFormView Pin
Muhammad Yousaf7-May-03 8:43
Muhammad Yousaf7-May-03 8:43 
GeneralCOM Pin
Heiko20037-May-03 8:08
sussHeiko20037-May-03 8:08 
Hi,
I write into Excel over COM
My Problem is the interface IDispatch. I can't get acces to a SeriesCollection object with this interface.
I've tried to map anotherone but this doesn't works. The compiler says the code is ok but when executing i got an invalid pointer massage

Here are some parts of my code:

_ApplicationPtr pXL;
pXL.CreateInstance(L"Excel.Application.9");
.
.
.
pXL->Range["Messwerte!B5"]->Value2= 35.6;
pXL->Range["Messwerte!B6"]->Value2= 32.7;
pXL->Range["Messwerte!B7"]->Value2= 33.6;
pXL->Range["Messwerte!B8"]->Value2= 37.6;
pXL->Range["Messwerte!B9"]->Value2= 34.6;

pXL->Charts->Add();
pXL->ActiveChart->SetSourceData(pXL->Range["Messwerte!B5:Messwerte!B9"], _variant_t((long)xlColumns) );
pXL->ActiveChart->ChartType = xlLineMarkers;
pXL->ActiveChart->Location(xlLocationAsObject,"Messwerte");
pSheet->Shapes->Item( _variant_t((long)1) )->Top = 0;
pSheet->Shapes->Item( _variant_t((long)1) )->Left = 0;
pSheet->Shapes->Item( _variant_t((long)1) )->Width = 400;
pSheet->Shapes->Item( _variant_t((long)1) )->Height = 200;
// it works until here now i want change some attributes of the chart so i have to use an SeriesCollection Object

IID IID_ISERIESCOLLECTION = {0x00020813-0x0000-0x0000-0xC000
0x000000000046};
ISeriesCollection *pscMyCollection;
pXL->ActiveChart->SeriesCollection( _variant_t((long)1) )->QueryInterface(IID_ISERIESCOLLECTION, (void**)&pscMyCollection);

pscMyCollection-> //here i want to acces members, e.g. Item, Add.. but it doesn't work

Thanks for Help


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.