Looping even number in python
Make looping with even number:
for i in range(start, end, step): print i
example:
for i in range(2,8,2): print i,
will produce:
$ 2 4 6
trying on a metaphor
Cosmic Funnies
Cosimo Galluzzi
Lint Roller? I Barely Know Her
One Nice Bug Per Day
cherry valley forever

★
tumblr dot com

PR's Tumblrdome
Aqua Utopia|海の底で記憶を紡ぐ
2025 on Tumblr: Trends That Defined the Year
d e v o n
Jules of Nature
No title available

祝日 / Permanent Vacation
Monterey Bay Aquarium
No title available
art blog(derogatory)
DEAR READER
styofa doing anything
seen from United Kingdom

seen from Brazil

seen from Malaysia

seen from Canada

seen from Malaysia
seen from United States
seen from Kosovo

seen from United Kingdom
seen from Türkiye

seen from United States
seen from United States
seen from Singapore
seen from United States

seen from United States
seen from Germany

seen from Türkiye
seen from United States

seen from Canada

seen from Malaysia

seen from Malaysia
@cacatan
Looping even number in python
Make looping with even number:
for i in range(start, end, step): print i
example:
for i in range(2,8,2): print i,
will produce:
$ 2 4 6
Convert CString to std::string
CString cs ("Hello"); // Convert a TCHAR string to a LPCSTR CT2CA pszConvertedAnsiString (cs); // construct a std::string using the LPCSTR input std::string strStd (pszConvertedAnsiString);
source: [here](http://forums.codeguru.com/showthread.php?231155-C-String-How-to-convert-between-CString-and-std-string&p=1390616#post1390616)
Append Text on CEdit
void CFoo::AppendTextToEditCtrl(CEdit& edit, LPCTSTR pszText) { // get the initial text length int nLength = edit.GetWindowTextLength(); // put the selection at the end of text edit.SetSel(nLength, nLength); // replace the selection edit.ReplaceSel(pszText); }
for appending lines:
void CFoo::AppendLineToMultilineEditCtrl(CEdit& edit, LPCTSTR pszText) { CString strLine; // add CR/LF to text strLine.Format(_T("\r\n%s"), pszText); AppendTextToEditCtrl(edit, strLine); }
source: [here](http://forums.codeguru.com/showthread.php?318921-MFC-Edit-Control-How-to-append-text-to-an-edit-control)
Enable/Disable RadioButton on MFC
CButton* pButton;
pButton = (CButton*)this->GetDlgItem(IDC_RADIOBUTTON); pButton->EnableWindow(FALSE); //or TRUE to enable button
Check Radio Button
Check RadioButton on MFC:
CButton* pButton; pButton = (CButton*)this->GetDlgItem(IDC_RadioButton); pButton->SetCheck(true);