C++ DLL Export: Decorated/Mangled names

Instead of using .def file just insert pragma comment like this #pragma comment(linker, “/EXPORT:SomeFunction=_SomeFunction@@@23mangledstuff#@@@@”) Edit: Or even easier: Inside the body of the function use #pragma comment(linker, “/EXPORT:” __FUNCTION__”=” __FUNCDNAME__) . . . if you have troubles finding the decorated function name. This last pragma can be further reduced with a simple macro definition.

How to get script of SQL Server data? [duplicate]

From the SQL Server Management Studio you can right click on your database and select: Tasks -> Generate Scripts Then simply proceed through the wizard. Make sure to set ‘Script Data’ to TRUE when prompted to choose the script options. SQL Server 2008 R2 Further reading: Robert Burke: SQL Server 2005 – Scripting your Database

Export DataTable to Excel with EPPlus

using (ExcelPackage pck = new ExcelPackage(newFile)) { ExcelWorksheet ws = pck.Workbook.Worksheets.Add(“Accounts”); ws.Cells[“A1”].LoadFromDataTable(dataTable, true); pck.Save(); } That should do the trick for you. If your fields are defined as int EPPlus will properly cast the columns into a number or float.

Read and Write CSV files including unicode with Python 2.7

Another alternative: Use the code from the unicodecsv package … https://pypi.python.org/pypi/unicodecsv/ >>> import unicodecsv as csv >>> from io import BytesIO >>> f = BytesIO() >>> w = csv.writer(f, encoding=’utf-8′) >>> _ = w.writerow((u’é’, u’ñ’)) >>> _ = f.seek(0) >>> r = csv.reader(f, encoding=’utf-8′) >>> next(r) == [u’é’, u’ñ’] True This module is API compatible … Read more

Export to CSV using jQuery and HTML

Demo See below for an explanation. $(document).ready(function() { function exportTableToCSV($table, filename) { var $rows = $table.find(‘tr:has(td)’), // Temporary delimiter characters unlikely to be typed by keyboard // This is to avoid accidentally splitting the actual contents tmpColDelim = String.fromCharCode(11), // vertical tab character tmpRowDelim = String.fromCharCode(0), // null character // actual delimiter characters for CSV … Read more