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

C / C++ / MFC

 
GeneralRe: Major problem with header files Pin
sGrabert22-Aug-07 23:05
sGrabert22-Aug-07 23:05 
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 
I am modifying the class CMimeMessage : public CMimeHeader, i need to modify the
virtual BOOL WriteData(HANDLE hFile, LPOVERLAPPED pOverlapped, LPCSTR szBoundary=NULL, DWORD dwFlags = 0) throw()
{
if (pOverlapped == NULL)
{
return FALSE;
}

// Make the MIME boundary for this message
char szBoundaryBuf[ATL_MIME_BOUNDARYLEN+1];
if(MakeBoundary(szBoundaryBuf,ATL_MIME_BOUNDARYLEN+1) == FALSE)
return FALSE;

// if the passed boundary is valid, this is an attached message
if (szBoundary && *szBoundary != '\0')
{
_ATLTRY
{
// output the MIME header for a message attachment
CStringA strHeader;
strHeader.Format("\r\n\r\n--%s\r\nContent-Type: message/rfc822\r\n\tname=\"%s\"\r\nContent-Transfer-Encoding: 8bit\r\n"
"Content-Disposition: attachment;\r\n\tfilename=\"%s\"\r\n\r\n",
szBoundary, m_szDisplayName, m_szDisplayName);

if (!AtlSmtpSendAndWait(hFile, ((LPCSTR)strHeader), strHeader.GetLength(), pOverlapped))
{
return FALSE;
}
}
_ATLCATCHALL()
{
return FALSE;
}
}

to have an output:

Content-Type: image/jpeg; name="image003.jpg"
Content-Description: image003.jpg
Content-Disposition: inline; filename="image003.jpg"; size=2313;
creation-date="Wed, 01 Aug 2007 09:51:13 GMT";
modification-date="Wed, 01 Aug 2007 09:51:13 GMT"
Content-ID: <image003.jpg@01c7d464.924ce700>
Content-Transfer-Encoding: base64
instead of:
Content-Type: image/jpeg;
charset="Windows-1252"
name="image003.jpg"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="image003.jpg"
AnswerRe: MIME embedded attachment Pin
monsieur_jj22-Aug-07 23:37
monsieur_jj22-Aug-07 23:37 
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 

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.