|
Hope I understood your question
See here[^]
|
|
|
|
|
Dear this is not sufficient.
Can you do more ?
|
|
|
|
|
Give him a day or two and I'm sure he will code a library for you.
You can try parsing the document retrieving text from the HTML tags, for that you will find many examples on CP for parsing a document.
|
|
|
|
|
No ...
I want to take all text strings (each and every line) (not tags) in a html file separatly.
|
|
|
|
|
What exactly do you want?
1. All the text strings, excluding the HTML tags.
2. All the HTML tags, excluding any other string.
3. Everything in the file.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
The first one ..
All the text Strings, excluding the HTML tags .
|
|
|
|
|
There are many good articles on CP for that. This article may be of your interest.
http://www.codeproject.com/cpp/krhtmlviewer.asp
"Insanity: doing the same thing over and over again and expecting different results." - Albert Einstein
|
|
|
|
|
No. that is not useful thing.
Do you konw any interface that have some function which can do this ? .
|
|
|
|
|
Please don't tell me that is not useful. It pretty well says how to parse a HTML file. There is a huge list of articles with regard to your concern if you search "HTML" in articles, enabling only the "Visual C++/MFC" checkbox. And you have your piece of cake in it.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
You have been given answers and you have been given links. If you are unwilling to listen to advice then please stop wasting our time asking. If you want to fix your problem, read the articles provided to you and modify them to suit your needs. Nobody here is going to give you the code.
|
|
|
|
|
In order to find a string in a HTML file, you will first need to find the relevent tags. This will then give you an idea about where the string is, where it ends, and what type of string it is.
|
|
|
|
|
Sakthiu wrote: ...(each and every line)...
HTML files are not confined to lines (e.g., you could have all of them on a single 'line'). Assuming so is just asking for trouble.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
its someone who have an ideea how to limit the upload speed from my computer ?
Bravoone
|
|
|
|
|
I have created a structure as
typedef struct __test{
char buf[10];
}TEST,*PTEST;
then i created a CList object as
CList<PTEST ,PTEST>my_firststruct;
then i am using to store linklist
if( my_firststruct.IsEmpty())
my_firststruct.Addhead(pTest);
else
my_firststruct.AddTail(pTest);
It is working fine. But problem start when i am using as
typedef struct __Second{
char buf[10];
}SECOND,*PSECOND;
typedef struct __test{
CList<PSECOND,PSECOND>my_secondstruct;
char buf[10];
}TEST,*PTEST;
if(pTest->my_secondstruct.IsEmpty())
when i am trying to call this is giving me error error code is
C0000005: This error is with memory. So how i will resolve this error.
Can any one help me on this...?
-- modified at 9:41 Wednesday 27th September, 2006
|
|
|
|
|
What is the error you are facing with
struct XXXX{
CList<ppp,ppp&>my_second_Struct;
char buff[10];
char buff1[10];
}YYY;
??
Rinu Raj
|
|
|
|
|
I have created a structure as
typedef struct __test{
char buf[10];
}TEST,*PTEST;
then i created a CList object as
CList<PTEST ,PTEST>my_firststruct;
then i am using to store linklist
if( my_firststruct.IsEmpty())
my_firststruct.Addhead(pTest);
else
my_firststruct.AddTail(pTest);
It is working fine. But problem start when i am using as
typedef struct __Second{
char buf[10];
}SECOND,*PSECOND;
typedef struct __test{
CList<PSECOND,PSECOND>my_secondstruct;
char buf[10];
}TEST,*PTEST;
if(pTest->my_secondstruct.IsEmpty())
when i am trying to call this is giving me error error code is
C0000005: This error is with memory. So how i will resolve this error.
Can any one help me on this...?
|
|
|
|
|
GudduRanchi wrote: ...please help me
With what? You've failed to indicate any problem.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I have created a structure as
typedef struct __test{
char buf[10];
}TEST,*PTEST;
then i created a CList object as
CList<PTEST ,PTEST>my_firststruct;
then i am using to store linklist
if( my_firststruct.IsEmpty())
my_firststruct.Addhead(pTest);
else
my_firststruct.AddTail(pTest);
It is working fine. But problem start when i am using as
typedef struct __Second{
char buf[10];
}SECOND,*PSECOND;
typedef struct __test{
CList<PSECOND,PSECOND>my_secondstruct;
char buf[10];
}TEST,*PTEST;
if(pTest->my_secondstruct.IsEmpty())
when i am trying to call this is giving me error error code is
C0000005: This error is with memory. So how i will resolve this error.
Can any one help me on this...?
|
|
|
|
|
I'm not sure what the problem is. This worked fine for me:
typedef struct __Second
{
char buf[10];
} SECOND, *PSECOND;
typedef struct __test
{
CList< PSECOND,PSECOND> my_secondstruct;
char buf[10];
} TEST, *PTEST;
PTEST pTest = new TEST;
if (pTest->my_secondstruct.IsEmpty())
;
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi
What you have suggested it is good.it works fine but ?
i am giving you total my problem.
I am having two structure. as you kmow.
typedef struct __Second{
char buf[10];
}SECOND,*PSECOND;
typedef struct __test{
CList<PSECOND,PSECOND>my_secondstruct;
char buf[10];
}TEST,*PTEST;
CList<PTEST ,PTEST>my_example;
i have created an object of PTEST as:
PTEST test;
Allocating an memory.
Filled this structure.
check (my_example.Isempty()){
// This is my First Node
my_example.AddHead(test);
}
In this condition i am getting problem
if i am alocating the memory of
PTEST my_example= new TEST;
them i am not able to call all the member variable of CList.
So what i have to resolve my problem
Regards and Thanks
Neeraj Kumar Jha
|
|
|
|
|
GudduRanchi wrote: PTEST my_example= new TEST;
You can't do this because my_example is a CList object. The compiler should have warned you of such.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I've created a Dialog based application that records audio(using DirectX of course) and changes the header of the audio file so that I get a file that is not playable by a regular player. Now,within my application itself,when I want to playback the said file,I decode the file to a "temp" with no extension and play it back. However I cant seem to delete the file either when I exit the application or when it finishes playing.
I believe my application isnt letting go of the file when it finishes playing it despite the fact that I set all the DirectX interfaces to NULL(I tried to delete the file manually after it finished playing and got an "Access Denied" error)
Any suggestions anybody??
Thank You
|
|
|
|
|
Try calling DeleteFile(..) in your class's destructor
Rinu Raj
|
|
|
|
|
I'd try that IF i was exiting the application. But if I'm fooling around by recording and then repeatedly playing back,I'd like to be able to delete the file each time it finishes playing.
Thanks for your suggestion though.Really appreciate it
|
|
|
|
|
You are creating a temp file right ?
Close the file handle of the temp file
then try DeleteFile(..)
it will work
Rinu Raj
Rinu Raj
|
|
|
|