473,386 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

global hooks in win xp and 98

Hi!
I have a problem with global hooks under these two OS.
I'm using three following types of hooks:
CBT Hokk,
Keyboard Hook,
Mouse Hooks.
I'm using BCB 6, under Win XP everything works fine (functions are in
dll of course, etc.).
But under Win 98 my program (without any communicates) execute normal,
but not working at all.
On old computers it looks like he's working (the usage of proccesor is
very high) but it takes no effect.
Is there some kind of general difference between win XP and 98 (at work
of hooks) ???

I can paste code here if it helps (I think it does).
I'll be very happy if someone reply for this message.
Best regards.

Mar 10 '06 #1
3 2226
maybe not the problem about the hook
Windows98 use the type char & windows xp use the type wchar_t to afford
unicode.
i sugguest u use the TCHAR instead of all char & wchar_t.At the same
time ,the func,
likes strlen,strcpy ....all should use the TCHAR edtion.

Mar 10 '06 #2
maybe not the problem about the hook
Windows98 use the type char & windows xp use the type wchar_t to afford
unicode.
i sugguest u use the TCHAR instead of all char & wchar_t.At the same
time ,the func,
likes strlen,strcpy ....all should use the TCHAR edtion.

Mar 10 '06 #3
Thanks for reply, I tried to do as you said, but it doesn't work :/
I Also didn't used a wchar_t type, only char.
Does anyone have another idea what is wrong?
Thanks for advices.

Mar 10 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: paul francis | last post by:
Hi Please help because I'm really stuck: I'm trying to write an application in C# which can be used to track the mouse pointer position on any window. I'm trying to use a Global mouse hook to...
0
by: John Wood | last post by:
It seems that this chap has proven this claim wrong (at least for mouse and keyboard hooks): http://www.codetools.com/useritems/globalhook.asp
1
by: tolisss | last post by:
hi why the following works only for windows initiated from the current thread SetWindowsHookEx(HookType.WH_CBT, HookProc,IntPtr.Zero,0) *** Sent via Developersdex...
2
by: tshad | last post by:
I am setting up Authentication that I want to put in multiple Web Sites on my server. I found a good article on this and am looking at moving my code from my Global.asax file to an HTTP Module. ...
2
by: Lunchtimemama | last post by:
I am trying to modify another application's window (Google Talk) to insert some UI of my own. I think the best method would be to install a remote local hook in gtalk's thread that intercepts the...
0
by: effone | last post by:
I have two addins installed in my Outlook 2003, both have their specific functionality, I would like to integrate the functionality of both thru global mouse hooks, here is my senerio 1) Lets say...
23
by: David Colliver | last post by:
Hi, using c#, 1.1 I know that we are not supposed to use global variables etc. in c# I am having a problem, but not sure how to resolve. I did have another post here, but may have over...
0
by: ramon.talavera | last post by:
Hello, I am trying to read rawinput as I have to distinguish between two devices (mice), I have found several examples and I am able to detect Raw Input in the local window, but cannot...
2
by: yuhongbao_386 | last post by:
Is using Reverse P/Invoke in a .NET DLL for installing global hooks supported?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.