|
Hi,
I have installed global mouse hooks in my application using following call
g_MouseHook = SetWindowsHookEx(WH_MOUSE_LL, MouseProc , hInstance, 0);
The mouse procedure is as follows
extern "C" _declspec(dllexport) LRESULT CALLBACK MouseProc (int nCode, WPARAM wParam, LPARAM lParam)
The MouseProc is calling successfully when current active desktop is "default".
When i switch the desktop to some other desktop, the MouseProc is not calling.
Can anyone tell me reason for this and also solution.
sharda
|
|
|
|
|
From the documentation for SetWindowsHookEx:
dwThreadId
[in] Specifies the identifier of the thread with which the hook procedure is to be associated. If this parameter is zero, the hook procedure is associated with all existing threads running in the same desktop as the calling thread.
This doesn't actually cure your problem, but hopefully it reassures you that you haven't made a daft mistake.
Iain.
|
|
|
|
|
thanks Iain,
Actually i tried with both the options like
g_MouseHook = SetWindowsHookEx(WH_MOUSE_LL, MouseProc , NULL,0);
and
g_MouseHook = SetWindowsHookEx(WH_MOUSE, MouseProc , NULL,GetCurrentThreadID());
Still in both the cases MouseProc is not called.
|
|
|
|
|
Hi everybody,
in my MDI Application under XP i Lock the MainFrame via LockWindowUpdate if a new Frame will be build and Unlock it if
all creation and initialisations are over.
So the user don't sees that the frame,view and all controls are created one by one (which seems ugly)
For XP this technique works great. But under Vista it don't work.
Creating a new Frame with a View and a TabControl draws several frames, slides it, etc
So the user sees all the creation and draw procedure
Is there a special technique to prevent this under Vista?
Big thanks for answers
|
|
|
|
|
I need some help about the user I/O run-time. Please, help with API or sample code or class.. I have been working on the Win32 CheckMarked platform..
modified 13-Mar-13 5:59am.
|
|
|
|
|
Hakan D wrote: I some need help about user I/O run-time.
Could you please detail your request?
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.
[my articles]
|
|
|
|
|
|
Don't you like cin , do you?
Or have I missed what is your difficulty about?
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.
[my articles]
|
|
|
|
|
|
Hakan D wrote: I dunno, i am not a shameless thief!..
I'm happy about, but it has nothing to do with my question, has it?
Hakan D wrote: I AM NOT BRIGAND, I AM NOT CLAIMING THE BELONG TO TO OTHERS TO THE THING. I'M NOT A MONKEY SO THAT THE BOTHER OTHER LIFE. I HAVE NOT GOT A JOB SUCH LIKE.
Hey man, I'm not a physician...
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.
[my articles]
|
|
|
|
|
Someone should go and fetch his dried-frog-pills...
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|
|
I'm no expert on using the console stuff, but can't you do...
cin >> m_pUser[0] >> m_pUser [1];
etc?
As for your subject... I/O can mean many things. Mouse messages, serial ports, network programming...
Iain.
|
|
|
|
|
|
I was trying to guess at what you were asking. I don't think I understand you either.
I did a google search for "win32 checkmark" and failed to find anything.
Iain.
|
|
|
|
|
Iain Clarke wrote: win32 checkmark
Maybe he meant "checked-build" Windows.
Maxwell Chen
|
|
|
|
|
That would make some sense. But I guessed at his meaning before, and he told me off.
(My skin is not *that* thin really - I've been told off much more bluntly!)
Iain.
|
|
|
|
|
Iain Clarke wrote: That would make some sense. But I guessed at his meaning before, and he told me off.
Maxwell Chen
|
|
|
|
|
SEREFSIZ MAYMUN GÖT. PIÇ ANASI BENLE SIKISMIS PISKIN MAYMUN MAHLUK UTANMAZ PISKIN MAYMUN NE IDIÜ BELIRSIZ YARATIK. PISIRIYIM MI SENI ANASINI SIKTIMIN TEKNOLOJISI UTANMAZ MAYMUN UTAN NE OLUR YAA BIRAK PESIMI KAFAYI BENLE MI YEDIN OLUM SEN SAGIR MISIN KIMSIN NESIN AMINA KODUGUMUN GÖTÜ. PIÇ, ANASINI SIKTIMIN SEREFSIZI, MAYMUNU, GÖTÜ, SIKTIMIN HIRSIZI, KENDINE AIT SEYLERE SAHIP ÇIK AMINA KODUGUMUN PIÇI. SENIDE ISINE SIKERIM BENI RAHAT BIRAK LAN ANASINI SIKTIMIN MAYMUNU.
|
|
|
|
|
Hakan D wrote: Win32 CheckMarked platform
Is this function what you need?
OutputDebugString
Maxwell Chen
|
|
|
|
|
Neyin varda seni pisireyim? Birak pesimi yaa kafayi benle mi yedin neolur birak pesimi yaa lütfen rica ediyorum benle ugrasmaktan vazgeç neolur sana yalvariyorum yaa birak pesimi neolur lütfen birak sana yalvariyorum artik beni alma yapabilir misin bilmiyorum ama benim pesimi birak neolur beni alma neolur birak pesimi sana yalvariyorum neolur yaaa birak artik birak yaaa kimsin nesin hiç mi utanman arlanman yok seni tanimiyorum yaa birak neolur pesimi birak nolur birak yeter artik benle ugrasmaktan vazgeç kendine baska bi is bul neolur yaaa olmasi lazim kendine ait seyler olmasi lazim beni rahat birak neolur
|
|
|
|
|
I'm going to guess that Maxwell does not speak your language. As there are very few little words, and mixing if ü (scandivian roots) and ç (slavic) I'm not even going to guess what the language is.
This is a canadian website, and the people who visit it are from all over the world. I think most people who visit use english as a second language. If you want help from more than 0.01% of people, you will too.
If you have trouble with english, I understand. I'm not good with other languages either (though I can use a bit of french, dutch, and swedish). If you think that Maxwell will help you after your reply, then you are beyond help.
Iain.
|
|
|
|
|
You're a wise guy, I really admire you.
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.
[my articles]
|
|
|
|
|
I was tempted to bite my tongue - but it appears I woke up on the wrong side of the bed today...
Beware my wrath, evil posters!
Iain ( )
|
|
|
|
|
Hakan D wrote: Neyin varda seni pisireyim? Birak pesimi yaa kafayi benle mi yedin neolur birak pesimi yaa lütfen rica ediyorum benle ugrasmaktan vazgeç neolur sana yalvariyorum yaa birak pesimi neolur lütfen birak sana yalvariyorum artik beni alma yapabilir misin bilmiyorum ama benim pesimi birak neolur beni alma neolur birak pesimi sana yalvariyorum neolur yaaa birak artik birak yaaa kimsin nesin hiç mi utanman arlanman yok seni tanimiyorum yaa birak neolur pesimi birak nolur birak yeter artik benle ugrasmaktan vazgeç kendine baska bi is bul neolur yaaa olmasi lazim kendine ait seyler olmasi lazim beni rahat birak neolur
Okay, you speak Turkish very well. But I don't understand Turkish though.
Maxwell Chen
|
|
|
|
|
when i debug my project using vs,such output messages were dumped:
Detected memory leaks!
Dumping objects ->
d:\work\ipodlibrarys\ipodlibrarys\ipodsmarttool\ipodsmarttooldlg.cpp(328) : {4306} normal block at 0x012EA938, 16 bytes long.
Data: < & > 1A 00 00 00 26 04 00 00 00 00 00 00 00 00 00 00
0x012EA7D8, 16 bytes long.
Data: < > 17 00 00 00 20 04 00 00 00 00 00 00 00 00 00 00
....
{3710} normal block at 0x012E9C78, 484 bytes long.
Data: <\Ok @ ( > 5C 4F 6B 00 40 00 96 01 28 00 00 00 00 04 00 00
d:\work\ipodlibrarys\ipodlibrarys\ipodsmarttool\ipodsmarttooldlg.cpp(328) : {3698} normal block at 0x012E9438, 16 bytes long.
Data: < & > 1A 00 00 00 26 04 00 00 00 00 00 00 00 00 00 00
........(too many items!)
someone would like to tell me,how sould i find where the memory leaking occurred?
Thanks.
|
|
|
|