![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Programmer
Join Date: Dec 2007
Posts: 93
Rep Power: 1
![]() |
Re: Timers and hooks -
Sure it does. What my loop does is delete all the menu items in the menu... It does this by checking why the recorded number of windows was and then deletes the same position every time. You might think that the function only deletes on thing but it doesn't, for example imagine that a menu had 2 menu items "A" and "B" if you where to use that function, it would delete the first item(in our case A) this means that since A had the index of 0 and B had 1, A is gone and B becomes 0. And that function keeps on deleting everything in the menu that is indexed at 0.
Quite complicated huh ?Any ideas? Thanks. |
|
|
|
|
|
#12 |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 547
Rep Power: 4
![]() |
Re: Timers and hooks -
You're right -- I'm the deaf one
![]() |
|
|
|
|
|
#13 |
|
Programmer
Join Date: Dec 2007
Posts: 93
Rep Power: 1
![]() |
Re: Timers and hooks -
Don't worry this happens to the best of us
Hmm, this is VERY bad. You basically just debugged that and came up with no problems. Then why do you think it stops my mouse hook? |
|
|
|
|
|
#14 |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 547
Rep Power: 4
![]() |
Re: Timers and hooks -
I didn't debug it -- all I did was look at the code. Since you didn't post all the code then only you can debug it.
|
|
|
|
|
|
#15 |
|
Programmer
Join Date: Dec 2007
Posts: 93
Rep Power: 1
![]() |
Re: Timers and hooks -
I was expressing, I meant that you basically just checked it for me
But now I'm just heart broken that I have no lead to what went wrong ![]() |
|
|
|
|
|
#16 |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 547
Rep Power: 4
![]() |
Re: Timers and hooks -
>>But now I'm just heart broken that I have no lead to what went wrong
We all feel that way from time-to-time. When that happens you learn how to use your compiler's debugger and step through the program so that you can see the value of variables and the flow of execution. If you don't know how to use your compiler's debugger, then take the time to learn it. Dev-C++ has its own form where you can search threads and ask questions. |
|
|
|
|
|
#17 |
|
Programmer
Join Date: Dec 2007
Posts: 93
Rep Power: 1
![]() |
Re: Timers and hooks -
Now that I think about it, would multi-threading help me in anyway?
Thanks. |
|
|
|
|
|
#18 |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 547
Rep Power: 4
![]() |
Re: Timers and hooks -
|
|
|
|
|
|
#19 |
|
Programmer
Join Date: Dec 2007
Posts: 93
Rep Power: 1
![]() |
Re: Timers and hooks -
Then would running the hook in another thread help me?
Thanks. |
|
|
|
|
|
#20 |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 547
Rep Power: 4
![]() |
Re: Timers and hooks -
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|