There are basically four methods to run a command in Visual C++.
· system(), _wsystem()
· ShellExecute() or ShellExecuteEx()
WinExec is provided only for compatibility with 16-bit Windows. Applications should use the CreateProcess function.
To Enumerate all views of the document the CDocument class provides GetFirstViewPosition and GetNextView member functions to enumerate all views associated with the document. We call view’s OnUpdate function to communicate with them.
//get the position of the first view in the list
//of views associated with the document.
POSITION pos = GetFirstViewPosition();
//terate through all of the document's views.
while (pos != NULL)
CView* pView = GetNextView(pos);
pView->OnUpdate(pSender, lHint, pHint);
Pat Brenner, a developer on the Visual C++ Libraries team recently shared some information about the Bugs fixed in Visual Studio 2012 for MFC.
Go through the post for the Bugs list.
1. Solitaire Puzzle with Backtracking – Link
2. Memory Plus + – Link
3. Network Renju Game – Link
Tic Tac Toe game developed using drawing functions of MFC.
For complete source code and article use the Link
Complete source code for the ‘Bubble Breaker’ game in MFC publish in the codeproject by chinese developer cdh928
For complete article and for source code click me !