Get range string
int okoc_get_range_str( LPCSTR lpcszBookWks, int nCol, string * pstrRange, DWORD dwRule = 0 )
0 if success, otherwise < 0 error codes
EX1
#include <okocUtils.h> void okoc_get_range_str_ex1() { string strRange = "[Book1]Sheet1!$A:$B" ; string pstrRange ; int bRet = okoc_get_range_str(strRange, 1, &pstrRange, DRR_GET_DEPENDENT ); if(0 == bRet) printf(" the range string is %s\n" , pstrRange); }
okocUtils.h