Click here to Skip to main content
15,917,533 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
gamitech19-Aug-05 3:33
gamitech19-Aug-05 3:33 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
kk_vp19-Aug-05 4:05
kk_vp19-Aug-05 4:05 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
ThatsAlok21-Aug-05 18:53
ThatsAlok21-Aug-05 18:53 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
kk_vp24-Aug-05 0:31
kk_vp24-Aug-05 0:31 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
MailtoGops19-Aug-05 4:26
MailtoGops19-Aug-05 4:26 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
kk_vp19-Aug-05 4:32
kk_vp19-Aug-05 4:32 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
MailtoGops22-Aug-05 0:23
MailtoGops22-Aug-05 0:23 
GeneralMIMESniffer.DLL MIME to HTML Conversion Problem ( if MIME tag starts with <DIV>,<P> or <UL> Pin
chandan kumar19-Aug-05 2:08
chandan kumar19-Aug-05 2:08 
Hi,
its wonderful to get HTML out of MIME buffer. I am able to get HTML out of almost all of my MIME buffer but it is failing for some cases.

Here is the MIME buffer where it crashing when I try to use get body from it.I anaysed that it always crash if HTML body starts with <DIV> or <P> tag.

Content-Transfer-Encoding: binary
Content-Type: text/html; charset=ISO-8859-1

<div><STRONG><FONT color=#ff9900>RTF NOT NULL Without attachment Title-099</FONT></STRONG></div>


code:

// hTempFile it contains handle of My MIME buffer file
CFileSystemStream SourceStream(hTempFile);
IMimeDecoderPtr Decoder;
IPersistStreamPtr pPersist;
Decoder->QueryInterface(&pPersist);
pPersist->Load(&SourceStream);
IMimeBodyPtr Body;
Body = Decoder->Body; -----------------------------------> it crashes here even I tried to put try catch block it never catch.



Mentioned MIME buffer comes from Quick Place. Quick Place is able to convert these MIME buffer into HTML correctly.

Is there any validation check for MIME buffer for MIMEsniffer.dll? How to validate the MIME buffer. I tried to put <HTML> </HTML> and <BODY> </BODY> tag to my MIME buffer and passed it to MIMEsniffer.DLL even it gets crashed.

could you help me out ?

Thanks in advance.
Chandan Kumar
VIT infotech

GeneralRe: MIMESniffer.DLL MIME to HTML Conversion Problem ( if MIME tag starts with &lt;DIV&gt;,&lt;P&gt; or &lt;UL&gt; Pin
Jose Lamas Rios19-Aug-05 2:55
Jose Lamas Rios19-Aug-05 2:55 
GeneralMIMESniffer.dll MIME to HTML conversion problem Pin
chandan kumar19-Aug-05 2:06
chandan kumar19-Aug-05 2:06 
QuestionCreate a button that can be dragged and dropped?? Pin
Hachaso19-Aug-05 1:15
Hachaso19-Aug-05 1:15 
AnswerRe: Create a button that can be dragged and dropped?? Pin
toxcct19-Aug-05 1:51
toxcct19-Aug-05 1:51 
AnswerRe: Create a button that can be dragged and dropped?? Pin
MailtoGops19-Aug-05 3:11
MailtoGops19-Aug-05 3:11 
GeneralRe: Create a button that can be dragged and dropped?? Pin
Hachaso22-Aug-05 21:43
Hachaso22-Aug-05 21:43 
GeneralRe: Create a button that can be dragged and dropped?? Pin
MailtoGops23-Aug-05 0:29
MailtoGops23-Aug-05 0:29 
GeneralString* char* Memory issue Pin
s2111979219-Aug-05 1:05
s2111979219-Aug-05 1:05 
GeneralRe: String* char* Memory issue Pin
Bob Stanneveld19-Aug-05 1:28
Bob Stanneveld19-Aug-05 1:28 
GeneralRe: String* char* Memory issue Pin
s2111979219-Aug-05 2:21
s2111979219-Aug-05 2:21 
GeneralRe: String* char* Memory issue Pin
Maximilien19-Aug-05 2:44
Maximilien19-Aug-05 2:44 
GeneralRe: String* char* Memory issue Pin
s2111979219-Aug-05 3:13
s2111979219-Aug-05 3:13 
GeneralRe: String* char* Memory issue Pin
Bob Stanneveld19-Aug-05 3:25
Bob Stanneveld19-Aug-05 3:25 
GeneralControl ghosting during dialog resize Pin
rem-c19-Aug-05 0:38
rem-c19-Aug-05 0:38 
GeneralRe: Control ghosting during dialog resize Pin
Roger Allen19-Aug-05 3:44
Roger Allen19-Aug-05 3:44 
GeneralRe: Control ghosting during dialog resize Pin
Gary R. Wheeler19-Aug-05 4:02
Gary R. Wheeler19-Aug-05 4:02 
GeneralRe: Control ghosting during dialog resize Pin
rem-c19-Aug-05 4:56
rem-c19-Aug-05 4:56 

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.