|
Question: Can we use this #pragma comment(ignore 4089) for the warning related to "OLEAUT32.dll" only?
For what I understand, the use of the #pragma is the same as hiding the warning via /IGNORE:4089 in the project settings, which is not the solution I'm looking for.
Does anybody has another suggestion?
Thanks in advance
-- Ricky Marek (AKA: rbid)
-- "Things are only impossible until they are not" --- Jean-Luc Picard
My articles
|
|
|
|
|
rbid wrote: Question:
Can we use this #pragma comment(ignore 4089) for the warning related to "OLEAUT32.dll" only?
no.
rbid wrote: or what I understand, the use of the #pragma is the same as hiding the warning via /IGNORE:4089 in the project settings
exactly.
rbid wrote: Does anybody has another suggestion?
there's no other way. either you hide every 4089 warnings, or you show them all.
but hey, it's only a warning , why do you bother that much ?
|
|
|
|
|
Hi Friends,
I am using CRichEditCtrl in my application.
Is it possible to display some line of text in seperate color(e.g 1 and 3 line in red color), and remainig(e.g 2 and 5 in blue) line text in another color.
Regards,
Prasanth
|
|
|
|
|
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 ...
|
|
|
|