|
I want to spy Mouse data from PS/2 port . if anyone know , please help me.
|
|
|
|
|
You still skipped the 'why' part of the question. Is this mouse still supposed to work in Windows while you are spying on it? If so you can't just 'open the port' anyways, as if you are reading from it the operating system can't be reading from it at the same time.
If you really need the low level bits coming from the mouse you would have to write a filter driver. To do this, install the DDK and have a look at the sample in src\input\moufiltr. I doubt however that you really need this, and writing drivers is not for the faint of heart.
If you are running on XP or later, you should use the Raw Input model. Have a look on MSDN for RegisterRawInputDevice.
If you have to support older versions of Windows, you should probably stick with hooks. In that case, have a look on MSDN for SetWindowsHookEx.
-Blake
|
|
|
|
|
Hi Blake Coverett
thanks for your reply .
My english writing is very bad sorry.
i want unplug a mouse from computer and turn on it , then after loading the windowsxp , plug in the PS/2 mouse and open it's port and read its data bits .
please more help me .
I guess that RegisterRawInputDevices can help me , but I can't findout it . If possible for you help me more.
|
|
|
|
|
I need this in c++ (console) Anything would be fine. Websites would be 'finer' :P.
<marquee>Universal Project... Soon to be a .net
|
|
|
|
|
|
Hello everybody, I got a project when i execute the project an error occurs so i want to convert the project to non UNICOE project can you help me thanx .
Getin, getout and get the job done
|
|
|
|
|
Try changing the configuration of your project to win32debug or win32release.
sledge
|
|
|
|
|
Dude, you need to post exactly what the error is. Otherwise you're very unlikely to get a response, Converting the app to ANSI may well be (and probably is) the wrong thing to do.
"Sucks less" isn't progress - Kent Beck [^]
Awasu 1.1.3 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
Hello ,and thanx for responding no errors on compilation but in execution i got this :
Linking...
LINK : fatal error LNK1104: cannot open file "mfc42ud.lib"
Error executing link.exe.
CmeUD.exe - 1 error(s), 0 warning(s)
I talked to some one and he said convert it to non UNICODE project is that right and how thank you very much bye.
|
|
|
|
|
Good grief. Whoever you spoke to doesn't really know what he's talking about!
MFC42UD.LIB is the Unicode debug version of the MFC runtime library (the ANSI version is MFC42D.LIB). If you run the VS installer again, there will be an option to install the Unicode libraries. Make sure it's in your link path as well.
This will take you 5 minutes to do. Depending on how big your app is, converting it to ANSI could take days or weeks! Your friend might be thinking that you can just undefine UNICODE and _UNICODE but things are never this simple! :roll:
"Sucks less" isn't progress - Kent Beck [^]
Awasu 1.1.3 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
i want to add some icones to the items of a tree control but i can't .
please tell me how can i do this . what's the problem of this code?
CImageList m_imgList;
CWinApp* papp=AfxGetApp();
if(papp!=0){ {
HICON hicon1,hicon2;
hicon1=papp->LoadIcon(IDI_ICON1);
hicon2=papp->LoadIcon(IDI_ICON2);
m_imgList.Add(hicon1);
m_imgList.Add(hicon2);
m_tree.SetImageList(&m_imgList,TVSIL_NORMAL);
HTREEITEM chapter;
chapter=m_tree.InsertItem("country",0,0);
m_tree.InsertItem("canada",1,1,chapter);
chapter=m_tree.InsertItem("person",0,0);
m_tree.InsertItem("sonya",1,1,chapter);}
|
|
|
|
|
did u call create() of image-list?
includeh10
|
|
|
|
|
yes one time i defined imagelist with bitmaps and i called create().
but i want to have HICON in my imagelist please tell me how could i have HICON instead of bitmaps.
|
|
|
|
|
Dear MFC guru's
I'm using MFC CSocket and CSocketFile and serialization to transfer data over the network.My data size is very large(some times upto 100KB).But my application is getting hanged after some time.When i monitor my data transfer using TDImon tool(from www.sysunternals.com) the result column is displaying PENDING when it's running and DATA_NOT_ACCEPTED before going to inactive state.My server application is not responding untill i kill my client application running on different machine.Can anyone help me how to transfer large amount of data using serialization and CSocket and why DATA_NOT_ACCEPTED error is coming.Any code examples would be great help.
Thanks and Regards
Krishna
|
|
|
|
|
hi,
my application back end is mysql. i using crystal report for report. i connect database thru ODBC. how to create ODBC at run time. any one help to me.
Thanks in Advance.
|
|
|
|
|
I am working at a company that has an established database and code. Lately they have been splitting their transactions between 2 databases running on differnt machines and then importing the transactions on one machine over to the other. The problem created by this is that their transaction ID are randomly generated long fields. The way the code use to keep ids unique was to do a select on the database to see if new randomly generated id already exists on the database and to keep on trying till a new unique number was generated( ).
Now that the code is run on two machines, two separate databases this aproach is obviously not working anymore. I could set an inifile setting sothat one machine generates only even and the other only uneven numbers but this is prone to all sort of stuff-upps
Any suggestions?
|
|
|
|
|
|
We are running db2 version 7. I did consider using a GUID, the problem is the transaction_id is an integer on the database and they will never ever allow me to change any datatypes on our database.
Thanks for the suggestion though;)
|
|
|
|
|
frankse wrote:
they will never ever allow me to change any datatypes on our database.
If that is true than the best way is to use some of the bits to represent which server it is on. Odd even will work but you may want to reserve more bits to allow more servers.
John
|
|
|
|
|
Great Idea, thanks I knew there was a cleaner solution, just could not grab a hold of it.
|
|
|
|
|
Hi
Just wondering how I can simply get the current Ip address in a C program on my NT box ? (In fact, I'd like to get same information that what's retrieved by the ipconfig exe).
My constraint is pure C.
Thanks!
Legrillon
|
|
|
|
|
You'll have to find a C library for sockets. try sourceforge or something.
|
|
|
|
|
|
Thanks Mike.
It was easy to port this example to C.
It works fine.
|
|
|
|
|
hi all,
can anyone please tell me how to set font for menu items??? Can I set my own font for menu items?? Kindly help me.
thanks!!
ramya.
|
|
|
|