|
You may handle the WM_CTLCOLORSTATIC message in the Edit Box parent window.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Hello every1.
I need to read the log file which is being updated every second and it is growing.
How do i have to approach that if i want to receive only 'newly' updated entries in the logfile rather than parsing it from the beggining?
Is there any good example how to do that?
|
|
|
|
|
Just store the end-of-file position, for instance (oversimplified standard C snippet)
last_pos = _lseek( fp, 0L, SEEK_END );
then, later on, start reading from recorded position
_lseek( fp, last_pos, SEEK_SET );
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
int01h wrote: ...i want to receive only 'newly' updated...
Since when?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
The last read, I suppose.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Let me know, any opensource is available for OCR (Object Character Recognization)
|
|
|
|
|
|
Hi all,
I was trying to read a .exe file in binary format. For doing this i have read the file and then copied it in buffer. My buffer is in this variable
std::vector<unsigned char="">buf(sz);
</unsigned>
now my problem is i want to see that wether it has copied the content in buffer correctly or not.......and i am not not getting the way of doing this.......
|
|
|
|
|
neha.agarwal27 wrote: std::vectorbuf(sz);
?!?
neha.agarwal27 wrote: now my problem is i want to see that wether it has copied the content in buffer correctly or not.......and i am not not getting the way of doing this.......
I suppose you put the file content into a buffer. Now what do you want to do?
Check whether buffer content corrensponds to file one? validate the executable format? What else?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
ye i want to write it back in new file and see if it works same......
|
|
|
|
|
That is not a daunting task, just read the file inside a buffer and then write the buffer content into another file.
What exactly (of the above process) is difficult for you to implement?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Actually exactly i want to find out that where exactly is version information of my file is given..
|
|
|
|
|
If your target is the executable version information resource then IMHO it is better to access it using standard API http://msdn2.microsoft.com/en-us/library/ms646981.aspx[^]
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Hi,
I wanted to add Korean strings to the string table on my Visual C++ 6.0 editor. But, when I copy the Korean text and paste it on the editor, the Korean string appears as "??????". Can anybody help me out?
Thanks in advance,
AJ
|
|
|
|
|
Did you search on the codeproject? "multi language"
|
|
|
|
|
I had to select the correct language from the language bar to resolve it.
Thanks a lot!
|
|
|
|
|
You're welcome.
|
|
|
|
|
hi i need help with reading data with my fscanf function
i have been reading some tutorial and they say that when i do fscanf(pfile,"%s",string)
the string will stop reading once it reads a white space
however my txt file is like name 1,dob,date
as you can see its seperated by an comman(,) and there white spaces inbetween the names sometimes
does anyone got any idea how to deal with this problem? please tell me and giv suggestions pls
|
|
|
|
|
do u have already tried fgets?
|
|
|
|
|
the function seems to store the whole file into an string though
|
|
|
|
|
the function seems to store the whole file into an string though..
if i do that i cant store my values into different variables
|
|
|
|
|
IMHO you have to read the file line by line and parse every line read.
To parse the read line you may use:
(1) hand crafted line parser.
(2) a string class (as std::string).
(3) a Regex parser (as Expresso).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
neodeaths wrote: does anyone got any idea how to deal with this problem?
Yes, try:
int a;
char dob[16];
char date[16];
fscanf("%d,%s,%s", &a, b, c); Note the types used and their size are highly dependent on the format of the file. You should seek other solutions.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi friends,
We are invoking a window which containe the grid, in grid we have combo box ( Which is drop down list style). We are able get the handle of grid( we are unable to get the handle or object id combo box).
My question is,
1) IS it possible to get the data from that combo box using grid handle??
2) Is there any method to get the data from that combo box??
Please help me..........
please help me is it possible or not??
---------------FYI-----------------------------------
1) I tried CCombbox class
2) I am using VC++ 6.0 version
thanks
Anand
Anand
modified on Thursday, December 27, 2007 2:19:36 AM
|
|
|
|
|
Hi friends,
We are invoking a window which containe the grid, in grid we have combo box ( Which is drop down list style). We are able get the handle of grid( we are unable to get the handle or object id combo box).
My question is,
1) IS it possible to get the data from that combo box grid handle??
2) Is there any method to get the data from that combo box??
Please help me..........
I am trying last one month back, i am unableto resolve this issue.
please help me is it possible or not??
thanks
Anand
|
|
|
|