Click here to Skip to main content
15,885,842 members
Everything / Convert

Convert

convert

Great Reads

by Alexei Shamov
Convert types, parse and evaluate expressions in runtime, in .NET 2.0
by shijo joseph
An extension methods library which could do the equality comparison operations easily
by Amit Singh Baghel
A useful tip to export a Div to PDF (with Unicode support) with the help of NReco-PDF Generator for .NET (C#), JQuery and Handler in ASP.NET
by blitzkrieged
This is a demonstration of splicing an animated GIF (or any image) frame by frame without having to write to the disc.

Latest Articles

by Xavier Junqué i de Fortuny
Converts MathML coded string to/from plain text string
by Cinchoo
Quick tutorial on converting CSV file to JSON file using Cinchoo ETL
by rohitsies
CSV file generator using simplistic approach
by NewPast
Converting codes Focus on upgrading VB6 to VB.Net and converting C# VB.Net, and listing many other helpful converter including php, java & others.

All Articles

Sort by Score

Convert 

21 Mar 2015 by Amit Singh Baghel
A useful tip to export a Div to PDF (with Unicode support) with the help of NReco-PDF Generator for .NET (C#), JQuery and Handler in ASP.NET
14 Oct 2013 by blitzkrieged
This is a demonstration of splicing an animated GIF (or any image) frame by frame without having to write to the disc.
15 Mar 2016 by Kornfeld Eliyahu Peter
Convert numbers of any base to base10...
18 Dec 2016 by NightWizzard
Convert amounts to their spoken equivalents
30 Oct 2011 by steveb
In UNICODE:CString str = L"Test";std::wstring ws(str);std::string s;s.assign(ws.begin(), ws.end());
24 Jan 2012 by jocko3d
The TestConversion function is not valid. The line of code "data = data & Chr(n)" uses the Chr function to build a string of characters used for the test. The problem is that the Chr function is itself bound to a code page. Specifically, it will utilize the code page that is in use by the...
18 Aug 2019 by rohitsies
CSV file generator using simplistic approach
1 Nov 2011 by Kaqkk79
How about this (assuming your project is set to Unicode)?CString strMyString=L"Test string";std::string strMyStdAnsiStr = CStringA(strMyString);
12 Mar 2012 by Xavier John
Converter to convert OHLC data to a larger timeframe
16 Apr 2014 by madagaga
Converting MSSQL database to MySQL
6 Aug 2010 by Jfer
I share this 'cause i don't find it in web. Uses Convertall to change data type between arrays
30 Jan 2011 by T-C
Use an extension method that applies to any object to Cast to other types
1 Dec 2011 by stonexin
LPSTR WideChar2MBCS( const CString& strCS ){ const UINT wLen = strCS.GetLength() + 1; UINT aLen = WideCharToMultiByte(CP_ACP,0,strCS,wLen,NULL,0,NULL,NULL); LPSTR lpa = new char[aLen]; WideCharToMultiByte(CP_ACP,0,strCS,wLen,lpa,aLen,NULL,NULL); return...
10 Oct 2013 by Morgan Estes
Compress and encode a string to save loading time in the browser
U 17 Apr 2024 by Xavier Junqué i de Fortuny
Converts MathML coded string to/from plain text string
7 Apr 2011 by oleg63
CString m_Name;CT2CA pszName(m_Name);std::string m_NameStd(pszName);Works for me everywhere... :)
2 Apr 2011 by jean Davy
As you use CString, you have access to the CW2A ATL macro, assuming that you work with _UNICODE defined, here it is:CString theCStr;...std::string STDStr( CW2A( theCStr.GetString() ) );which will convert to "system encoding on the user's machine" (thanks Nemanja[^] comment !), if you...
2 Jan 2014 by Viktor Kovács
A simple solution for processing spaceless strings
29 Feb 2012 by Tieske8
Fast conversion between strings and byte arrays, while bypassing the codepage limitations
6 Oct 2012 by Frans Jan
This article shows how to save a Windows Form to a PDF file.
13 Nov 2011 by geoyar
I am using CString str(_T("Test"));typedef std::basic_string string_t;string_t resStr(str);It works because the CSting has a cast to LPTCSTR.
8 Jun 2010 by Alain Rist
You might have considered using ::GetComputerNameA() which does the conversion for you:std::string GetSystemName(){ CHAR sBuf[MAX_COMPUTERNAME_LENGTH + 1] = {0}; DWORD dwLen = MAX_COMPUTERNAME_LENGTH; ::GetComputerNameA(sBuf, &dwLen); return std::string(sBuf);}Note...
17 Oct 2013 by Alireza C
I want to show how we can export data from data table to Excel simply.
16 Dec 2011 by Sayed Irfanul Hasan
Text to PDF Convert
20 Oct 2021 by Cinchoo
Quick tutorial on converting CSV file to JSON file using Cinchoo ETL
3 Apr 2012 by Mikhail-T
Tutorial on how to create simple extension that converts view model propety name to string
20 Jul 2013 by Patrick Harris
Class for converting decimals and fractions (allows rounding to a decimal also)
17 May 2010 by WajihUllahBaig
Hi there,Its been a while since I wrote my last article. Since got myself into a problem of getting the system name of my PC.I dragged my C instincts into the MSDN world of asking how to get the PC name.After fiddling for a while I got hold of the PC name, not that difficult as a...
27 Jun 2012 by Sriranganatha
Discussion on which casting to use - static, dynamic or reinterpret
19 Aug 2013 by Ritesh_Singh
A function which returns date in different formats base on the input given
29 Mar 2011 by CalicoSkies
C++: Converting an MFC CString to a std::string
18 May 2012 by ♥…ЯҠ…♥
Convert PDF content into text using C#, for beginners.