B
Bill Below
I'm making my first try at C++/Cli coding by compiling an existing C++ app in
VS2005 with /clr and changing the code that starts and runs Excel to use the
Excel 2003 PIA. With VS2003, I used Add Class to generate header files for
the Excel classes. Add Class in VS 2005 uses the #import directive to
generate humongous thi and tlh files that don't compile. That's why I am
trying the managed approach.
I am down to just a few compile errors and they involve properties of Range.
The old code was of the form:
CRange oRange = .... ;
oRange.put_Value(COleVariant(saValues));
where saValues is a SafeArray.
Now I need something of the form:
Range^ hRange = .....;
hRange->Value = ??????
and I am stuck.
Anyone know of a C++/Cli sample that applies to this? Is there more
specific documentaion than the Excel PIA Reference which tells me to pass an
Object? Are SafeArrays still used in the managed world?
Thanks,
Bill
VS2005 with /clr and changing the code that starts and runs Excel to use the
Excel 2003 PIA. With VS2003, I used Add Class to generate header files for
the Excel classes. Add Class in VS 2005 uses the #import directive to
generate humongous thi and tlh files that don't compile. That's why I am
trying the managed approach.
I am down to just a few compile errors and they involve properties of Range.
The old code was of the form:
CRange oRange = .... ;
oRange.put_Value(COleVariant(saValues));
where saValues is a SafeArray.
Now I need something of the form:
Range^ hRange = .....;
hRange->Value = ??????
and I am stuck.
Anyone know of a C++/Cli sample that applies to this? Is there more
specific documentaion than the Excel PIA Reference which tells me to pass an
Object? Are SafeArrays still used in the managed world?
Thanks,
Bill