PROfile
All time reputation: 69
Achievement
jimfred's Recent C++ Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« Prev [Page 1 of 1] Next »
C++
MFC, Determine if 'this' app has focus
posted on May 14, 2011 by jimfred
C++
MFC, Text to clipboard
posted on April 9, 2011 by jimfred
C++ mfc saved by 1 person
MFC, Get default browser using AssocQueryString
posted on June 21, 2010 by jimfred
C++ mfc saved by 1 person
Get a Registry string value as a CString, MFC. Examples to get version of browsers.
posted on June 21, 2010 by jimfred
C++ mfc CreateProcess saved by 1 person
MFC, run command such as "ping 127.0.0.1" and get stdout in a CString.
posted on June 21, 2010 by jimfred
C++ saved by 1 person
C++, DLL, shared memory using pragma without touching .DEF file
posted on March 2, 2010 by jimfred
C++ saved by 1 person
MFC, edit INI file using ShellExecute
posted on March 1, 2010 by jimfred
C++
trivial example, C++, gcc, using simpleIni.h
posted on February 24, 2010 by jimfred
C++ mfc
MFC, append text to textbox
posted on December 18, 2009 by jimfred
C++
MFC, CImage, CMitmap, draw a sine wave and save to a BMP file.
posted on December 16, 2009 by jimfred
C++
MFC, browse CWD
posted on December 15, 2009 by jimfred
C++ mfc
MFC, How to avoid closing of the dialog boxes when ESCAPE key or ENTER key is pressed.
posted on November 8, 2009 by jimfred
C++ windows dll mfc saved by 1 person
embed an MFC dialog-based app in a DLL and run using RunDll32
posted on August 24, 2009 by jimfred
C++ saved by 1 person
Enumerate NULL delimited strings that are terminated with a double NULL.
posted on July 22, 2009 by jimfred
C++ saved by 1 person
GetCurrentDirectory, MFC
posted on July 22, 2009 by jimfred
C++ scroll mfc CEdit
MFC CEdit append to text log and scroll to the end
posted on July 14, 2009 by jimfred
C++ ts2dll saved by 1 person
TS2GetInfo
posted on July 6, 2009 by jimfred
C++ saved by 1 person
Simple stopwatch class to measure duration using clock() and CLOCKS_PER_SEC in time.h
posted on May 8, 2009 by jimfred
C++ windows WinBase CreateProcess saved by 1 person
MyExec, calls CreateProcess, waits for completion. WinBase
posted on May 7, 2009 by jimfred
C++ windows WinBase
Get my exe's directory. WinBase API
posted on May 7, 2009 by jimfred
C++ windows WinBase saved by 1 person
Simple non-dot.net function to determine if a file exists. Uses the WinBase API.
posted on May 7, 2009 by jimfred
C++ c mfc CDialog
MFC, resize control in CDialog app
posted on May 2, 2009 by jimfred
C++
CSzEnumerator
posted on April 27, 2009 by jimfred
C++
Get application's full path, MFC, using AfxGetApp()->m_pszExeName, GetModuleHandle and GetModuleFileName
posted on April 17, 2009 by jimfred
C++
MFC, Open File dialog and shellExecute for regsvr32
posted on March 25, 2009 by jimfred
C++
MFC, does file exist.
posted on February 18, 2009 by jimfred
C++
MFC, log to file
posted on February 18, 2009 by jimfred
C++
Add self-uninstall ability to MFC application by calling ShellExecute for MsiExec.exe
posted on February 18, 2009 by jimfred
C++
Get version resource info for a file.
posted on February 18, 2009 by jimfred
C++ windows api shift
Win32 API to check shift state
posted on December 11, 2008 by jimfred
C++ template array map Vector deque saved by 2 people
C++ template quick reference
posted on November 19, 2008 by jimfred
C++ file line stringize saved by 1 person
print __FILE__ and __LINE__ using the # stringizing operator
posted on November 17, 2008 by jimfred
C++ c gui thread mfc saved by 1 person
ASSERT_GUI_THREAD - see if current thread is GUI thread in MFC C++
posted on November 14, 2008 by jimfred
C++ template c tree mfc saved by 1 person
core::tree is an STL-like template to implement, for example, a tree of CStrings
posted on November 13, 2008 by jimfred
C++ c memory visual Studio leak saved by 2 people
Visual Studio debug tools to detect and debug memory leaks by setting a breakpoint on a particular memory allocation.
posted on November 12, 2008 by jimfred