|
Hi,
One more Q, in one of the system mscomm32 was existing but created in 1997(when i saw in it properties) when i executed my project it was not working, when i replaced with the mscomm32 which was created in 1998 it started working.Am curious to know why it is so.
Thanks
|
|
|
|
|
Today is our traditional midautumn Day,On this day,we look the full moon,eat the mooncakes and enjoy the moments with our family members together.And I never forget you ,the people here.Just wish you all a good night and a sound sleep!
|
|
|
|
|
bornunique wrote: ...eat the mooncakes...
So the moon really is made of cheese cake!
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
This has absolutely nothing to do with C++. Read the forum guidelines.
__________________________
Don't drink and derive.
Alcohol and calculus don't mix.
|
|
|
|
|
hum, yes.
and what's your question ?
|
|
|
|
|
You computing geeks or in this case morons could use break once in a "blue moon"!
And the question is:
"How much wood would woodchuck chuck if the woodchuck could chuck wood?"
Pass some moonshine my way…
|
|
|
|
|
|
Vaclav_Sal wrote: You computing geeks or in this case morons could use break once in a "blue moon"!
There is a lounge for casual dialog. If you weren't such a moron, you could read the list of forums across the top.
And "you computing geeks"... Nice, but since you're here too, what exactly does that make you?
|
|
|
|
|
Are you officially back?
__________________________
Don't drink and derive.
Alcohol and calculus don't mix.
|
|
|
|
|
Well, I never really left. I just no longer deal with the lounge and soapbox. Although, that may not have been apparent, by my, ahem, going out post.
|
|
|
|
|
CP has a lounge.
Jemmy : Deadline? Pfft, a real programmer eats deadlines for breakfast. :P
Mark: I thought real programmers ignored deadlines
Best wishes to Rexx[^]
|
|
|
|
|
Well each thread on the language forums is a question that relative to that forum but The Lounge forum is for these objects;).(But anyway I think it must a good day )
|
|
|
|
|
Hi,
Pls tell me a STL data structure, by which I can implement Least Recently Used algorithm.
i.e. Each time a request comes to a ID, I will update the Hit count, when I have to delete an entry
I can get the one with Lowest Hit Count (Least Recently Used ). With map I have to iterate through all elements & find the one with Lowest Count? Is ther any other data structure which will directly retreive the ID with Lowest Hit Count.
Thanks in Advance,
Vinod.C.S
|
|
|
|
|
I don't think there is such a structure in the STL. You could check out the Boost Library[^] to see if there's one there or write your own either based on stl structures or from scratch.
If you do then be sure to post it on Code Project so we can all benefit. That's if there isn't one knocking around here already. Have you checked the Articles?
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
Hi all,
In VC++.NET how to merge an string with a Pointer. For example,
TCHAR* serial_key ="some text";
mycommand=new SqlCommand ( "Select id from validate where value='"+ serial_key +"'",mySQLConnection ) ;
I am declaring the serial_key as TCHAR * from some purpose. So changing it's type is difficult for me
Thanks in advance
Know is Drop, Unknown is Ocean
|
|
|
|
|
it's not a string with a pointer that you merge, but a string with a C-Style string which first character is pointed to by your pointer.
have a look at the _tcscat() CRT function to concatenate your strings...
|
|
|
|
|
strcat with TCHAR ? You're looking for troubles
|
|
|
|
|
OMG, i didn't see it was TCHAR strings... lol.
thanks anyway, i fixed my post.
|
|
|
|
|
You cannot add two strings together this way (you will just add the two addresses). Instead, you should use _tcscat macro which resolve to strcat if no unicode is declared or to wcscat if unicode is defined. See here[^].
|
|
|
|
|
how to read and display the text file data instanously and update(display one data at a time), whereas the text file is being written at runtime by the vc++ pgm
|
|
|
|
|
suganforu wrote: how to read and display the text file data instanously and update(display one data at a time), whereas the text file is being written at runtime by the vc++ pgm
do you think we're idiots ?
it's not because your question goes on the 2nd page like we don't see it anymore, and that you deleted your post that the answers don't remain the same :
NO, YOU CAN'T ![^]
you have to read the file first.
|
|
|
|
|
You got to read the file and display regularly. Setting up a timer may help.
If it is possible you can compare the file size or file time to check for changes.
Greetings from Germany
|
|
|
|
|
|
It sounds like what you want is live display of file contents in real time. Technically that is impossible but in practice if you back off your requirements a little you may be able to get it to work.
There are two basic approaches:-
1 A loop which reads the file, displays the contents and pauses for a short time then goes round again. Depending on the size of the file and complexity of the display you may be able to get several updates per second or an update every few seconds. Either way your processor usage is liekly to be 90%+ and unhappiness may result.
2 Read the file once and display it. Then register for File Change Notifications from the operating system and when you get one that relates to the file you're interested in re-read and re-display it. This is more code and less portable but probably a better way to go.
If data integrity is an issue you're going to need to lock the file while reading it, unlock it when you're finished and perhaps carefully synchronise your usage. Other tricks like reading large blocks at a time from the file that match the native file block sizes, temporarily boosting the priority of the reader thread etc could be used to improve the overall effectiveness but in the end this is not a job which fits comfortably with the machine architectures we have inherited from the days of batch processing and single threaded operation.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
You can read file update its values and then return this new values to file but answer to your question is no.
|
|
|
|