|
Did you search on the codeproject?
|
|
|
|
|
Prasanth M V wrote: Is it possible to display some line of text in seperate color...
Did you look for the SetSelectionCharFormat() method?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Thanks
SetSelectionCharFormat works well
|
|
|
|
|
hi,
i am having a CMap , and i am trying to write a word document in my vc++ appln,
i am going for Cmap.Lookup() Method, and getting the values and writing to a document file.
but its taking 100% cpu performance
why ?
what is the solution for this ? and any other kind of reports are there, to get a report from my application.
Thanks,
jhony
Born to win...!
|
|
|
|
|
Jhony george wrote: i am trying to write a word document
What does "word document" mean? Like in Microsoft Word .doc/.docx format?
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
modified on Monday, September 15, 2008 7:53 AM
|
|
|
|
|
sashoalm wrote: What does "word document" mean?
yes, i am having a data and
i am trying to write into a word document.
like "sample.doc"
Born to win...!
|
|
|
|
|
how big is the data you're writing, in megabytes?
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Are you sure that this Lookup() Method is the cause for 100% CPU. Please use a diagnostic tool to find out the exact cause for the peak CPU usage. May be dump analysis can help.
Regards,
Rane
|
|
|
|
|
hai,
i am not pointing to only lookup, may be some other probs...!
where can i get the diagnostic tool, do u knw any link for that ?
Born to win...!
|
|
|
|
|
You may use MS DebugDiag Tool.The Debug Diagnostic Tool (DebugDiag) is designed to assist in troubleshooting issues such as hangs, slow performance, memory leaks or fragmentation, and crashes in any windows process.
Regards,
Rane
|
|
|
|
|
hi,
actually My problem is i am writing into a word doc file, but its taking 5 minutes hardly , (at that time cpu performance was 100%)
total no.of pages in the Report document is 30,
what is the solution for reducing this time span...?
Born to win...!
|
|
|
|
|
Jhony george wrote: but its taking 100% cpu performance
why ?
It could be any of a dozen things. You've not provided any useful information so how are we supposed to help?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Is there any plugin in Window Media player to display the level of audio (i.e. audio bar).
Rajesh
|
|
|
|
|
When I found void foo_bar() is more readable than void FooBar()
(Do you agree?), I tried not to use capitalized naming convention.
Then I encounter a problem, in STL even class name are not capitalized (string, vector ...),
but with a more detailed class, how to name it? For example, for a Solid Pen class,
solid_pen or solid_pen_t seems not good enough(not sure, no practical experiecne).
Is there an STL way for this?
Thanks for your suggestion.
system
modified on Monday, September 15, 2008 5:18 AM
|
|
|
|
|
this is just a naming convention.
I used to prefer naming LikeThisMyClasses, and likeThisMyVariables, with some other variants (like prepending with m_ the member variables, etc)...
|
|
|
|
|
It's much more efficient to write a program that parse the name
and get each token of it when using name like like_this_my_class
than LikeThisMyClass .
And so does the human header I think.
system
|
|
|
|
|
followait wrote: It's much more efficient to write a program that parse the name
and get each token of it when using name like like_this_my_class
than LikeThisMyClass.
What is the baasis of such a sentence?
followait wrote: And so does the human header I think.
De gustibus non est disputandum.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: What is the baasis of such a sentence?
The rule that seperating words.
The _ version only needs to check _ for different words.
The capitalized version needs to check capitalized letters . Though capitalized letters
are usually larger, it is still less efficient than the first version.
CPallini wrote: De gustibus non est disputandum.
_ is more like the space that sperating words in articles.
So which version is better objectively?
system
modified on Monday, September 15, 2008 8:47 AM
|
|
|
|
|
OK. I misunderstood your original post.
Anyway I think that (nowdays) it is a very-very-week argument in favour of such a notation.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
followait wrote: It's much more efficient to write a program that parse the name...
It should make no difference to the parser what case you use, how long or short the names are, etc.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
For the computer,
the time could be ingored relative to other calculations.
But to itself, the difference should be considered.
For the human,
you may can try both versions.
system
|
|
|
|
|
Hi masters!
--------------
Any one knows any replacement for TranslateMessage() function?
You see! I mean a function that can translate virtual-keys into right
charaters, considering <SHIFT> and <CAPS LOCK> status and also
system writing language?
Thank you in advance ...
|
|
|
|
|
hi i am trying to compile a driver program which is giving build error as follows i really don have a clue why this problem The error i am getting is
------ Skipped Rebuild All: Project: CommTest, Configuration: Debug Win32 ------
Project configuration skipped because it is not selected in this solution configuration
------ Rebuild All started: Project: CommDriver, Configuration: Free Win32 ------
Deleting intermediate files and output files for project 'CommDriver', configuration 'Free|Win32'.
Compiling...
CommDriver.c
CommDriver.c(0) : fatal error C1083: Cannot open include file: '\inc\wxp\warning.h': No such file or directory
Project : warning PRJ0018 : The following environment variables were not found:
$(CPU)
$(BASEDIR)
Build log was saved at "file://c:\DriveGUIComm_demo\DriveGUIComm_demo\Demo_project\Driver\Free\BuildLog.htm"
CommDriver - 1 error(s), 0 warning(s)
---------------------- Done ----------------------
Rebuild All: 0 succeeded, 1 failed, 1 skipped
and i am using Windows DDK 3790.1830 and also tried to look at the post which Mr beans and Mick have given before in codeguru but did not help me . Please if any body can give me a hint mail at shwethavg@aol.com
|
|
|
|
|
manju23reddy wrote: URGENT please help!!!!
that's not a way to ask.
take a ticket and wait your turn.
manju23reddy wrote: error C1083: Cannot open include file: '\inc\wxp\warning.h': No such file or directory
well, that's pretty clear, no ?
do you have to correct file somewhere on your disk ?
did you forget to install some SDK by chance ?
|
|
|
|
|
sorry for that title well actually everything is properly installed but i think there is some problem with build environment because i had checked in codeguru where for same problem MICk has written solution but it was in 2003 january it was posted . my doubt is i feel there is some problem with version but i am sure it is problem with build enviroment i am not understanding where to include the path and describe the environment variables.
|
|
|
|