|
It is a daunting task, you know. Good luck.
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]
|
|
|
|
|
Hi Guys,
Is there any way or tool exists to tells "hot" critical sections in your code?
- Vikram S
|
|
|
|
|
vikrams wrote: Is there any way
Yes. One can learn skills related to software development.
led mike
|
|
|
|
|
Yes very true.
But consider a case where you are using third party library with such locks.
|
|
|
|
|
vikrams wrote: But consider a case where you are using third party library with such locks.
what are these locks you are talking about? Here is your first post that says nothing about them at all.
vikrams wrote: Is there any way or tool exists to tells "hot" critical sections in your code?
led mike
|
|
|
|
|
My dear friend,
Please read my initial post carefully. This entire discussion is moving around critical sections.
|
|
|
|
|
vikrams wrote: This entire discussion is moving around critical sections.
Ah, you mean Critical Section Objects[^]?
If so what does the "hot" mean?
vikrams wrote: "hot" critical sections in your code?
Reading that part of your post I in no way understood you were talking about Critical Section Objects. You might consider you are using text based communications, therefore you should attempt to avoid confusion. For example, you could have linked your "critical section" to a resource that specified what you meant, like I did. After all it is you that is asking for help, not us.
led mike
|
|
|
|
|
Okey Mike. I will take care of such thing in my new postings.
Now Do you have anything useful for me and ofcourse related with this topic?
|
|
|
|
|
|
vikrams wrote: There are people who does understand what "hot locks" means.
Good, so you now have your answer. Good luck.
|
|
|
|
|
I need to write an algorithm for a game.
I have a list of questions a list of answers and another list of clues.
I need an algorithm to create random combinations of questions and clues, once the question is attempted the corresponding clue and answer becomes void and should not occur again for the next question.
I hope iam clear with the requirement!
|
|
|
|
|
Member 5502879 wrote: create random combinations of questions and clues
HUH? What good are clues if they are randomly applied to questions?
Q: Who discovered King Tuts tomb?
Clue: The largest body of water in the state of Nebraska is lake Havaclue.
led mike
|
|
|
|
|
Ur right , i should have not said random combination of clues.
Its just combination of a questions and its corresponding clues.
But since this is a multiplayer game by 'random combination' i meant a players screen which is visible to the ones beside him/her should have diff a combination.
I hope now the requirement is clear!!
|
|
|
|
|
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]
|
|
|
|
|
Member 5502879 wrote: I need an algorithm to create random combinations...
Can't you use rand() ?
"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
|
|
|
|
|
Hello,
Can any body send me ActiveX Test Container program (tstcon32.exe) ? : I didn't find it in VS2008, neither in the internet.
charfeddine.ahmed@gmail.com
Thank you in advance.
Our Philosophy, Mohammed Baqir Al Sadr
|
|
|
|
|
Ever heard of Google? Couple minutes finds this.[^]
Good luck
led mike
|
|
|
|
|
How stupid I am ! I was in deed in that pag but I didnt notice that it contains the source code of ActiveX Test Container, which I would merely build to get what I want..
Thank you !
Our Philosophy, Mohammed Baqir Al Sadr
|
|
|
|
|
hINTModuleState wrote: How stupid I am !
ROTFLMAO Been there done that! Pretty much daily.
led mike
|
|
|
|
|
I have a MFC app, within it I use SHA1CryptoServiceProvider() which is managed code. Now if I launch the app from within the IDE (via F5) it all runs nicely. However if I open up explorer and launch it through that it seems all my SHA1 calculations (computeHash()) fail. Everything else about the app works as expected except the hash checking.
I'm taking a guess here but I'm almost certain it has to do with integration of unmanaged and managed code. Why is launching it from within the IDE so different than launching it outside of the IDE. What am I missing? Have I forgotten to load something (dll?) that gets automatically loaded from with the IDE.
Any help much appreciated. I'm completely stumped.
|
|
|
|
|
Your post is confusing
jbem wrote: I use SHA1CryptoServiceProvider() which is managed code
There are no functions that are managed code. Perhaps you can post the code and link to the MSDN documentation[^] for what you are using. That way we can be clear what you are doing.
led mike
|
|
|
|
|
Never mind. I meant CLI integration with .net etc. In any event I ripped out the CRT requirement I imposed on myself by using MS's .net crypto services, in so doing nearly halfed my executable size and replaced the functionality with some native C++. In the end the problem wasn't what I thought. I tracked it down to one uninitialized variable. For whatever reason in the IDE it ran fine but outside it didn't. The wonders of random variable values..
|
|
|
|
|
Hi,
I am using CDateTimeCtrl to display current time, but do not want to display the seconds. How can I do that?
|
|
|
|
|
MPTP wrote: How can I do that?
By using the SetFormat() 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
|
|
|
|
|
Does this [^] help?
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]
|
|
|
|