|
you r right!!
i've spend hours trying to find what is wrong and that's it
2 more parenthesis!!
thanks for helping DavidCrow
|
|
|
|
|
antonaras_marcou wrote:
what i'm trying to do is read an html code and clean the text from the tags(<>)
Are you aware of Mr.Alok's product?
check^
VuNic
|
|
|
|
|
Thanks VuNic i've been looking for something like this for weeks now and i couldn't find anything helpfull enough.
This looks promising i hope i can understand the code and use it for my needs?
Thanks again appreciate
p.s If i have any problem using it i'll post a new message.
|
|
|
|
|
antonaras_marcou wrote: p.s If i have any problem using it i'll post a new message.
you are most welcome.
VuNic
|
|
|
|
|
he is assigning at the same time the variable t with the return of getc(pFile) . this is correct code.
don't confuse between operator = and operator == ...
|
|
|
|
|
Thanks for the reply v2.0
your saying that t=getc(pFile)is correct and it is the problem i had is when i include function getc in a while loop thats when the whole thing crashes.
Thangs again for the reply
|
|
|
|
|
Hello antonaras
I wanted to say that you can not do like that is loop. Actually you are not getting input again in while loop.
Please change your code with following after cout<<"in tags";
t=getc(pFile);<br />
while (t!='>')<br />
{<br />
cout<<t;<br />
t = getc(pFile);<br />
}
It should work. Dont hasitate to ask in case of any problem.
Good luck.
We Believe in Excellence
|
|
|
|
|
You can always rank helpful replies(on bottom right).
Regards
We Believe in Excellence
|
|
|
|
|
#include <iostream>
#inlcude <fstream>
#include <iterator>
#include <algorithm>
using namespace std;
int main ()
{
ifstream ifs("C:\\a.txt");
ifs >> noskipws; // We want white space.
copy(istream_iterator<char>(ifs), istream_iterator<char>(), ostream_iterator<char>(cout));
}
Steve
-- modified at 7:13 Wednesday 8th March, 2006
|
|
|
|
|
Hi,
I know virtual and heap memory use paged memory, but what is un-paged memory? Is it local and global variables?
Neil
-- modified at 4:22 Wednesday 8th March, 2006
|
|
|
|
|
The unpaged pool is where memory is allocated by the kernel and drivers which isn't paged out; it's always available without having to load it from disc. It is used to store information which must be instantly available such as data needed to service interrupts as such. It is of no real interest application developers.
Steve
|
|
|
|
|
Thanks Stephen.
What about local and global memory? Is all types of variables Virtual, ie paged?
Neil
|
|
|
|
|
By local and global memory I assume you referring to the LocalAlloc and GlobalAlloc APIs. These two APIs are vestiges of the old 16 bit days - In modern Windows these are just allocated memory from a normal heap. Or perhaps you are referring to local vs global variables - A local variable is a variable that only exists in a specific scope and is no longer valid when that scope exits.
Steve
|
|
|
|
|
can u just me any book regarding the explanation
Thanx in advance
never say die
|
|
|
|
|
Sorry, I don't know of any such books.
Steve
|
|
|
|
|
hello all,
I want to know how to add tooltips to the hover buttons.
I got this hover button class from one codeproject article.even they gave code for adding tool tips.but it is not working in my project.
So plz help me to add tooltips to hover buttons.Its very urgent.
thanks in advance
cheers
sangeet
-- modified at 4:15 Wednesday 8th March, 2006
|
|
|
|
|
ramyasangeet wrote: I got this hover button class from one codeproject article
You should ask this question to the author of the article.
Nibu thomas
Software Developer
|
|
|
|
|
thanks for ur reply
cheers
sangeet
|
|
|
|
|
hi,
I have downloaded "Magnifying Glass" by "Alex FR" ,application from codeproject.How do we activate the .exe with hokey.........When it in systemtray.
Thanks before
James rocky
|
|
|
|
|
RockyJames wrote: How do we activate the .exe with hokey
Create a shortcut to the executable by right-clicking on it and selecting "Create Shortcut". Move the shortcut to the desktop. Right-click on the new shortcut and select "Properties". On the "Shortcut" tab you can specify a hotkey combination for it.
Best regards
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
_outp(0x64, 0xad); // disable the keyboard
|
|
|
|
|
Hi friends,
1) Can I modify the printer job from Queue and add water mark to it..?
2) Is there any way to remove printer JOB from printer queue programatically?
Vikram S
|
|
|
|
|
vikrams wrote: 1) Can I modify the printer job from Queue and add water mark to it..?
No.
vikrams wrote: 2) Is there any way to remove printer JOB from printer queue programatically?
EnumJobs() will let you enumerate all the current jobs, and then SetJob() can be used to cancel it.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
hi all
i want to create an instance of a class which is specified in a variable
say CString csClassName( "MyClasss" );
In this case i want to create an instance of MyClass.
Is there any way to do this without using any switch cases or if elses ..
Thanks in advance
divin
|
|
|
|
|
Hi all
i want to create an instance of a class whoes class name is stored in a variable;
say
CString csClassName( "MyClass" );
i want to create an instance of "MyClass"
How it is possible without using any switch cases or if else....
Thanks in advance
divin
|
|
|
|