|
I want a converter sample which converts html data to txt file.
|
|
|
|
|
Can't you simply write a small app that removes everything contained between < > ?
~RaGE();
|
|
|
|
|
<blockquote class='FQ'><div class='FQA'>swarnamanoo wrote:</div>I want a converter sample which converts html data to txt file. </blockquote>
Let m_strHtmlData of type CString Contain all the your HTML data, this small piece of code will help you to remove html code from that data and pFP is file pointer of destination ASCII File
// vector<TCHAR> vecChar;
BOOL bRecFlag=TRUE;
for(int iCount=1;iCount<m_strHtmlData.GetLength();iCount++)
{
if(m_strHtmlData.GetAt(iCount)==_T('<'))
bRecFlag=FALSE;
if(m_strHtmlData.GetAt(iCount)==_T('>'))
bRecFlag=FALSE;
if((bRecFlag)&&((m_strHtmlData.GetAt(iCount)!=_T('>'))&&(m_strHtmlData.GetAt(iCount)!=_T('<'))))
_fputtc(m_strHtmlData.GetAt(iCount),pFP);
}
|
|
|
|
|
ThatsAlok wrote: BOOL bRecFlag=TRUE;
for(int iCount=1;iCount<m_strhtmldata.getlength();icount++)
{
="" if(m_strhtmldata.getat(icount)="=_T('<'))
" brecflag="FALSE;
">'))
bRecFlag=TRUE;
if((bRecFlag)&&((m_strHtmlData.GetAt(iCount)!=_T('>'))&&(m_strHtmlData.GetAt(iCount)!=_T('<'))))
_fputtc(m_strHtmlData.GetAt(iCount),pFP);
}
~RaGE();
|
|
|
|
|
Rage wrote: if(m_strHtmlData.GetAt(iCount)==_T('>')) bRecFlag=TRUE;
ooops
|
|
|
|
|
The last time I checked, HTML was text. Exactly what is it that you are trying to accomplish?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: Exactly what is it that you are trying to accomplish?
Remove the HTML tags, we guessed. From <b>this is bold</b> only get "this is bold".
~RaGE();
|
|
|
|
|
I am having problems with ATL and RichEdit controls.
I created an ActiveX (composite control using ATL that just contains a
RichEdit box (that was added with the Resource Editor). When the control is
displayed in IE5, the "backspace" key does not work properly in the RichEdit
box. Instead of deleting the chars in the box, pressing the "backspace" key
while in the RichEdit box causes the browser to go "Back" to the previous
URL. (Strange!)
|
|
|
|
|
|
When you create a rich edit control using the resource editor, the default class used for the control is "RICHEDIT" version 1. To use a higher version you must open your resource file in text mode and edit the class name. RichEdit20W/RichEdit20A for version 2 and 3, and I think version 4 is RichEdit50W but you should check that one.
Also be sure to load the correct library for the version you want to use.
|
|
|
|
|
|
|
How to call Web service in vc++6.0?
The web service is written by Vc++.net.
Please give me a example.Thanks!
|
|
|
|
|
How to add SOAP client functionality to native Win32 applications by using managed SOAP classes in Visual Studio .NET
http://support.microsoft.com/?kbid=908574[^]
My blogs:
http://blog.joycode.com/jiangsheng
http://blog.csdn.net/jiangsheng
http://bloglines.com/public/jiangsheng
Command what is yours
Conquer what is not
---Kane
|
|
|
|
|
Download the soapsdk.exe from the microsoft's site and install it as well download the soapclientbase.h file from this site and use that file for deriving a new class and use the invoke method for calling the webservice method
Knock out "T" from CAN'T
You 'CAN' if you think you 'CAN'
|
|
|
|
|
I have created a control using ATL COM wizard. Now I do not know to insert it into a CRichEditCtrl , plz help me , Thanks
|
|
|
|
|
|
I am a chinese!
|
|
|
|
|
Usually asking a question in public helps me find the answer so...
I have to use VC6, and I've just done a reinstall, and for the life of me, I can't find the option to view line numbers in the code ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I don't seem to remember line numbers were available in VC++ 6.0. It do, however, shows line and column number of current caret position in status bar.
-Saurabh
|
|
|
|
|
That would explain it. I hate VC6...
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote: That would explain it. I hate VC6...
Don't be surprised, I just fetched out this thread. I remembered you asking this question hence...
Well I am working in VC6 now so I did enable the "Tip of the Day" dialog. I just saw a tip saying that if you wish to goto a particular line you can press Ctrl + G . I don't know whether you knew this or not. Just trying to help.
It's a pretty useful dialog. Got lots of other options too (as if you don't know ).
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
Hi
I used the md5 program described here http://www.codeproject.com/cpp/cmd5.asp in a dll
the output is supposed to be the hash of the current date is stored in the registry.
I'm pretty sure I'm doing something idiotic right here.
HashDate(SYSTEMTIME Date, CComBSTR& bstrHashValue)
{
CMD5 md5((const char *)& Date);
bstrHashValue += _bstr_t( md5.getMD5Digest());
}
Any insight is appreciated
thanks
|
|
|
|
|
I think you should translate the date to a string using CTime::Format(...) method and call the MD5 constructor with that string. Good luck and good coding!
|
|
|
|
|
thanks for your tip
turns out i wasnt doing anything wrong i was just testing it wrong.
i'll punch myself now
|
|
|
|