CSpreadSheet exported data to excel spreadsheet
,, can you tell me the CSpreadSheet after download, himself into static library compilation is successful, but at the time of call, the MFC application crash
Download address: (https://www.codeproject.com/articles/1636/cspreadsheet-a-class-to-read-and-write-to-excel-an), the code is as follows:
Void TestDlg: : OnBnClickedButton ()
{
CSpreadSheet sheet (_T (" sheetfilename. XLS "), _T (" sheetname "));
CStringArray headers, row;
Headers. The Add (_T (" str1 "));
Headers. The Add (_T (" str2 "));
Headers. The Add (_T (" str3 "));
Row. The Add (_T (" hello "));
Row. The Add (_T (" world "));
Row. The Add (_T ("!" ));
Sheet. BeginTransaction ();
Sheet. AddHeaders (headers);
Sheet. AddRow (row);
Sheet.Com MIT ();
}
Why the test cases cannot generate execl, please?