Click here to Skip to main content
15,913,773 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Major problem with header files Pin
Cedric Moonen22-Aug-07 23:18
Cedric Moonen22-Aug-07 23:18 
GeneralRe: Minor problem with header files [modified] Pin
sGrabert22-Aug-07 23:35
sGrabert22-Aug-07 23:35 
QuestionEmbed one application file in other application? Pin
bosfan22-Aug-07 22:27
bosfan22-Aug-07 22:27 
AnswerRe: Embed one application file in other application? Pin
Iain Clarke, Warrior Programmer22-Aug-07 23:32
Iain Clarke, Warrior Programmer22-Aug-07 23:32 
GeneralRe: Embed one application file in other application? Pin
bosfan23-Aug-07 0:45
bosfan23-Aug-07 0:45 
AnswerRe: Embed one application file in other application? Pin
David Crow23-Aug-07 2:55
David Crow23-Aug-07 2:55 
QuestionMIME embedded attachment Pin
monsieur_jj22-Aug-07 21:40
monsieur_jj22-Aug-07 21:40 
AnswerRe: MIME embedded attachment Pin
monsieur_jj22-Aug-07 23:37
monsieur_jj22-Aug-07 23:37 
pardon me but this is the one i need to modify:

virtual inline BOOL MakeMimeHeader(CStringA& header, LPCSTR szBoundary, LPCTSTR szFileName)
{
ATLENSURE(szBoundary != NULL);
ATLASSERT(szFileName != NULL);
ATLASSUME(m_pszEncodeString != NULL);

char szBegin[256];
if (*szBoundary)
{
// this is not the only body part
Checked::memcpy_s(szBegin, 256, ATLMIME_SEPARATOR, sizeof(ATLMIME_SEPARATOR));
Checked::memcpy_s(szBegin+6, 250, szBoundary, ATL_MIME_BOUNDARYLEN);
*(szBegin+(ATL_MIME_BOUNDARYLEN+6)) = '\0';
}
else
{
// this is the only body part, so output the MIME header
Checked::memcpy_s(szBegin, 256, ATLMIME_VERSION, sizeof(ATLMIME_VERSION));
}

// Get file name with the path stripped out
TCHAR szFile[MAX_PATH+1];
TCHAR szExt[_MAX_EXT+1];
Checked::tsplitpath_s(szFileName, NULL, 0, NULL, 0, szFile, _countof(szFile), szExt, _countof(szExt));
Checked::tcscat_s(szFile, _countof(szFile), szExt);

_ATLTRY
{
CT2CAEX<max_path+1> szFileNameA(szFile);

CStringA szDisplayName(szFile);
if (m_szDisplayName[0] != '\0')
{
szDisplayName = CT2CAEX<_MAX_FNAME+1>(m_szDisplayName);
}

header.Format("%s\r\nContent-Type: %s;\r\n\tcharset=\"%s\"\r\n\tname=\"%s\"\r\n"
"Content-Transfer-Encoding: %s\r\nContent-Disposition: attachment;\r\n\tfilename=\"%s\"\r\n\r\n",
szBegin, (LPCSTR) m_ContentType, m_szCharset, (LPCSTR) szDisplayName, m_pszEncodeString, (LPCSTR) szFileNameA);
return TRUE;
}
_ATLCATCHALL()
{
return FALSE;
}
}
AnswerRe: MIME embedded attachment Pin
Iain Clarke, Warrior Programmer22-Aug-07 23:42
Iain Clarke, Warrior Programmer22-Aug-07 23:42 
GeneralRe: MIME embedded attachment Pin
monsieur_jj23-Aug-07 14:37
monsieur_jj23-Aug-07 14:37 
GeneralRe: MIME embedded attachment Pin
Iain Clarke, Warrior Programmer23-Aug-07 21:57
Iain Clarke, Warrior Programmer23-Aug-07 21:57 
GeneralRe: MIME embedded attachment Pin
monsieur_jj23-Aug-07 22:21
monsieur_jj23-Aug-07 22:21 
GeneralRe: MIME embedded attachment Pin
monsieur_jj23-Aug-07 23:20
monsieur_jj23-Aug-07 23:20 
GeneralRe: MIME embedded attachment Pin
monsieur_jj23-Aug-07 15:06
monsieur_jj23-Aug-07 15:06 
GeneralRe: MIME embedded attachment Pin
monsieur_jj23-Aug-07 19:30
monsieur_jj23-Aug-07 19:30 
GeneralRe: MIME embedded attachment Pin
monsieur_jj24-Aug-07 1:13
monsieur_jj24-Aug-07 1:13 
QuestionCRichEditCtrl class and ClistBox class Pin
prithaa22-Aug-07 21:34
prithaa22-Aug-07 21:34 
AnswerRe: CRichEditCtrl class and ClistBox class Pin
Nelek22-Aug-07 22:24
protectorNelek22-Aug-07 22:24 
GeneralRe: CRichEditCtrl class and ClistBox class Pin
Roger Broomfield22-Aug-07 22:28
Roger Broomfield22-Aug-07 22:28 
AnswerRe: CRichEditCtrl class and ClistBox class Pin
Roger Broomfield22-Aug-07 22:25
Roger Broomfield22-Aug-07 22:25 
GeneralRe: CRichEditCtrl class and ClistBox class Pin
prithaa22-Aug-07 22:54
prithaa22-Aug-07 22:54 
AnswerRe: CRichEditCtrl class and ClistBox class Pin
David Crow23-Aug-07 2:59
David Crow23-Aug-07 2:59 
GeneralRe: CRichEditCtrl class and ClistBox class Pin
prithaa23-Aug-07 7:08
prithaa23-Aug-07 7:08 
QuestionMSMQ Remote Use Pin
abhiramsss22-Aug-07 20:41
abhiramsss22-Aug-07 20:41 
Questionshell execute Pin
sujtha22-Aug-07 20:08
sujtha22-Aug-07 20:08 

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.