Comment Re:Component systems and versioning (Not) (Score 1) 355
Even the COM purist at Redmond break their
own Law of "Inmutability". This is what's needed
if you don't know which version of Excel
you're working with:
pXL.CreateInstance ("Excel.Application");
vt.vt = VT_BOOL;
vt.boolVal = TRUE;
#ifdef _EXCEL_9_OFFICE_2000_
pXL->PutVisible(0, vt);
#else
pXL->PutVisible( vt );
#endif
- Ernie
own Law of "Inmutability". This is what's needed
if you don't know which version of Excel
you're working with:
pXL.CreateInstance ("Excel.Application");
vt.vt = VT_BOOL;
vt.boolVal = TRUE;
#ifdef _EXCEL_9_OFFICE_2000_
pXL->PutVisible(0, vt);
#else
pXL->PutVisible( vt );
#endif
- Ernie