Click here to Skip to main content
15,906,628 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCreating a process and capturing output Pin
Anonymous4-Aug-03 1:44
Anonymous4-Aug-03 1:44 
GeneralRe: Creating a process and capturing output Pin
Anonymous4-Aug-03 1:51
Anonymous4-Aug-03 1:51 
GeneralRe: Creating a process and capturing output Pin
Arjan Schouten4-Aug-03 2:08
Arjan Schouten4-Aug-03 2:08 
GeneralRe: Creating a process and capturing output Pin
Anonymous4-Aug-03 3:39
Anonymous4-Aug-03 3:39 
Questionany suggestion? Pin
zeki yugnak4-Aug-03 1:07
zeki yugnak4-Aug-03 1:07 
AnswerRe: any suggestion? Pin
David Chamberlain4-Aug-03 4:01
David Chamberlain4-Aug-03 4:01 
GeneralCRecentFileList Pin
Anonymous4-Aug-03 0:18
Anonymous4-Aug-03 0:18 
GeneralRe: CRecentFileList Pin
HPSI4-Aug-03 0:36
HPSI4-Aug-03 0:36 
The WriteList() method requires a CWinApp object, as you can see from the code:
void CRecentFileList::WriteList()
{
    ASSERT(m_arrNames != NULL);
    ASSERT(!m_strSectionName.IsEmpty());
    ASSERT(!m_strEntryFormat.IsEmpty());
    LPTSTR pszEntry = new TCHAR[m_strEntryFormat.GetLength()+5];
    CWinApp* pApp = AfxGetApp();
    pApp->WriteProfileString(m_strSectionName, NULL, NULL);
    for (int iMRU = 0; iMRU < m_nSize; iMRU++)
    {
        wsprintf(pszEntry, m_strEntryFormat, iMRU + 1);
        if (!m_arrNames[iMRU].IsEmpty())
        {
        	pApp->WriteProfileString(m_strSectionName, pszEntry,
        		m_arrNames[iMRU]);
        }
    }
    delete[] pszEntry;
}

The good news is that WriteList() is virtual, so you could probably just rewrite this one method to make it work.



HPS HwndSpy
- GUI developer's aid to visually
locate and inspect windows. For the month of August
only, use coupon code CP-81239 for 30% off.
Generalwindows help-topic does not exit error Pin
haritadala4-Aug-03 0:04
haritadala4-Aug-03 0:04 
GeneralRe: windows help-topic does not exit error Pin
HPSI4-Aug-03 0:25
HPSI4-Aug-03 0:25 
GeneralRe: windows help-topic does not exit error Pin
haritadala4-Aug-03 0:57
haritadala4-Aug-03 0:57 
GeneralProgram too big to fit in memory Pin
JensB3-Aug-03 23:37
JensB3-Aug-03 23:37 
GeneralCtreeCtrl Tool Tips Pin
Marissa1823-Aug-03 23:36
Marissa1823-Aug-03 23:36 
GeneralRe: CtreeCtrl Tool Tips Pin
Anonymous3-Aug-03 23:52
Anonymous3-Aug-03 23:52 
GeneralRe: CtreeCtrl Tool Tips Pin
HPSI4-Aug-03 0:20
HPSI4-Aug-03 0:20 
GeneralHere are some syntax Pin
FlyingDancer3-Aug-03 22:47
FlyingDancer3-Aug-03 22:47 
GeneralRe: Here are some syntax Pin
Ryan Binns4-Aug-03 1:24
Ryan Binns4-Aug-03 1:24 
GeneralRe: Here are some syntax Pin
FlyingDancer4-Aug-03 1:53
FlyingDancer4-Aug-03 1:53 
GeneralRe: Here are some syntax Pin
Ryan Binns4-Aug-03 1:58
Ryan Binns4-Aug-03 1:58 
GeneralNet*Enum APIs, can't link FileEnum user to host Pin
Fahr3-Aug-03 22:43
Fahr3-Aug-03 22:43 
QuestionHow to play a .mod or .xm music? Pin
lenghost3-Aug-03 22:36
lenghost3-Aug-03 22:36 
AnswerRe: How to play a .mod or .xm music? Pin
Kochise3-Aug-03 23:16
Kochise3-Aug-03 23:16 
GeneralRe: How to play a .mod or .xm music? Pin
lenghost4-Aug-03 15:17
lenghost4-Aug-03 15:17 
QuestionHow to disable displaying &quot;...&quot; in column header when text is wider? Pin
s_k3-Aug-03 22:30
s_k3-Aug-03 22:30 
AnswerRe: How to disable displaying &quot;...&quot; in column header when text is wider? Pin
Kochise4-Aug-03 1:58
Kochise4-Aug-03 1:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.