you are trying to create a multidimenional array on stack. normally stack has a limitation of 2MB but heap can go upto around 100 MB. create all the variables in heap and importantly delete it after using. this is a classic multi dimension c++ mem allocation. sample : _variant_t **raw_data[N]; for(int nOut = 0;nOut < N;nOut++) { raw_data[nOut] = new _variant_t*[N2]; for(int nIn = 0;nIn < N2;nIn++) { raw_data[nOut][nIn]= new _variant_t(nIn);// sample initialization } } // delete this is important for(int nOut = 0;nOut < N;nOut++) { for(int nIn = 0;nIn < N2;nIn++) { delete raw_data[nOut][nIn]; } delete raw_data[nOut] ; }
J
jagadish bharath
@jagadish bharath
Posts
-
Stack overflow -
Stack overflowhi, use vector<_variant_t*> d(10000); instead of vector<_variant_t> d(10000);
-
Moving Controls on a DialogMay be try this GetDlgItem(IDC_BTN_ADDITEM)->ShowWindow(SW_HIDE); GetDlgItem(IDC_BTN_ADDITEM)->MoveWindow(rect); GetDlgItem(IDC_BTN_ADDITEM)->ShowWindow(SW_SHOW);