|
Hi,
It is easy enough to capture keybaord events into an out of focus window
(see Processing Global Mouse and Keyboard Hooks in C#
By George Mamaladze )
BUT does anyone know how to detect the HID device ID that sent the keyboard event from within the event handler?
Reason:
I have a generic USB IR remote control that generates standard keyboard events, but I want to route the remote keys to another out of focus application and not to the current in focus application. But at present I have no way to determine if a particular generic key (e.g. the "1" key)originated from the Keyboard or the remote.
Regards, Jeltz
|
|
|
|
|
i was developing windows service in C#. in that solution i added a setup project. the windows serivce build went fine. when i tried to build the setup project it showed "Error 1706.No valid source could be found for product Visual Studio .NET Enterprise Architect 2003 - English. The windows installer cannot continue. “ and my windows service didnt install..
how should i proceed from here..? kindly let me know
|
|
|
|
|
There is some possibly useful information here.[^]
The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’
|
|
|
|
|
thanks it worked
|
|
|
|
|
I've made a capture application in c# with DirectShow and I currently obtain an output file. I am now developping a video conferencing application and I would like to transform the capture to obtain a stream instead of the output file in order to be able to put this live stream on a serveur. And then the participant of the video conference will be able to read the stream from the serveur.
Is it possible to obtain a stream in output of a DirectShow capture?
Which method can I use in c# to do this?
Thanks
Julien
|
|
|
|
|
Hi!
I have completed a desktop application in C# and am now suuposed to make help files(.chm) for it. Can anybody give me few step by step tips, listing how the whole process of creating help goes.
cheers!
|
|
|
|
|
Install the "HTML Help Workshop" utility which comes with the Visual Studio. See the detailed help in this utility for creating HTML help (.chm file) for your program.
|
|
|
|
|
Thanx for showing the way out...I already have installed the MS HTML Help Workshop, the problem with its help is that its useful if u have already used HTML Help Workshop. Like it never talked about how to start off, where to write my help stuff, will it be a text file or a html?
Any simple explanations for a beginner with help files?
cheers!
|
|
|
|
|
You have to use the html files for particular topics to be included in the HTML Help Workshop. Basic steps are as under:
1. Create a new Help project using the File-New command.
2. Add HTML files for the topics to be included.
3. Add / create Index and Contents file which will be used for the Contents / Index tabs in your help system.
4. Add graphics files etc. inside your html topic files.
5. Change properties of the help project file as per requirements.
6. Compile the help project to give you the .chm file.
Details on these individual topics can be seen in the HTML Help Workshop utility's help file which gives step-by-step details.
|
|
|
|
|
I want to do the following: Create a Windows.Forms application put a WebBrowser control into it that connects to web browser. What I want to do is to run a local web server that starts when the application loads and stops when it is terminated.
Something that Visual Web Developer 2005 does and I think the Borland C#.
I don't want to use IIS.
Is there such web server?
|
|
|
|
|
|
Thanks a lot! That's what I was looking for!
|
|
|
|
|
Hi Code Project Guru's,
I recently stumbled upon this code to change languages... http://www.codeproject.com/csharp/FormLanguageSwitch.asp by Julijan Sribar
However, I cannot get it to work on my own projects...
I've tried all the basic stuff like setting my forms Localizable property to true & etc, but am really stumped. Have you got it to work in your own projects (with the Treeview control)?
FormLanguageSwitchSingleton.Instance.ChangeLanguage(this, new CultureInfo("de"));
Feedback greatly appreciated!!!
Lecky
|
|
|
|
|
Hi folks,
Do you guys know how I can list all the scheduled tasks in Windows? What API should I call?
Thanks a bunch.
|
|
|
|
|
I don't know if there is some FCL wrapper for it, but in C++, you use CoCreateInstance to get a handle to the task scheduler object, CLSID_CTaskScheduler. Given that, you can call Enum() to enumerate the scheduled tasks. Look up documentation on ITaskScheduler.
|
|
|
|
|
Any idea on how to operator overload in C#.Net?
Be Humble in Victory and Strong in Defeat. -Het
|
|
|
|
|
maybe this article helps:
http://msdn.microsoft.com/library/en-us/cssample/html/vcsamOperatorOverloadingSample.asp
|
|
|
|
|
I typed 'operator overload in C#' into google and got a ton of references.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
"Abstract classes can add more functionality without destroying the child classes that were using the old version. In an interface, creation of additional functions will have an effect on its child classes, due to the necessary implementation of interface methods to classes."
CAN ANY ONE EXPLAIN THIS WITH AN EXAMPLE? WHEN WE ARE IMPLEMENTING ABSTRACT CLASSES, HOW COME THE CHANGE TAKES PLACE IN ALL THE DERIVED CLASSES WHICH IMPLEMENT ABSTRACT CLASS WHEN WE MAKE A CHANGE IN ABSTRACT CLASS?
KUMAR
|
|
|
|
|
The point of any class heirarchy is that every class inherits the behaviour of all classes it is derived from. Otherwise, there'd be no point in an OO heirarchy.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Please don't yell. People are trying to work around here!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Can someone please help me out and advise me which is the best application type to use for writing a CBT?? Should I use WindowsForms, Win32 or MFC?
I'm writing a desktop application which has multiple choice questions, drag and drop, hot spot etc. I'm stuck at which application type I should use.
Also if anyone can suggest any sites or books that would be of help to me, please do so
Thanks!!
Darktaz
|
|
|
|
|
I think you want the C++ forum. In C#, your only option is Windows Forms. In C++, I'd say go with MFC. Win32 is interesting, if you like doing stuff the hard way. managed C++ is really not that great an option, IMOI, although I'd regard WinForms/C# to be the easiest way forward, overall.
The best site is www.codeproject.com, they have heaps of articles and message boards where you can ask questions if you get stuck
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I'm making a networking program that involves one server and multiple clients. I need to stream data out to all these clients preferable at a rate of 30 times/second.
The problem is, is that the packets bundle. I need these messages to get to the clients seperately. However, when my BeginReceive callback is called, there are multiple messages in the buffer. I turned on the noDelay flag and that didn't help.
Also, I think the messages get backed up in a queue. When I first start sending the messages at 30 per second, the client will receive about 7 at a time. After a few minutes it is receiving up to 60 messages per callback!
Anyone have any ideas?
And if you know the answers to any of these questions please help:
1) When I call beginsend. Do I need to wait until endsend is called before I send my next message?
2) TCP\IP should have virtually no delay on a network right?
3) will my beginreceive callback ever be called with a fraction of a packet? For instance will I ever get half of a packet on one call and the other half on the next?
Thanks for any help
Joe Scheinberg
|
|
|
|
|
hii,
about your quetions
1- ofcourse you must wait till endsend and you must call endsend method in beginsend callback function to ensure send is done Successfully. if send faild you will recieve exception from endsend
2-nodelay don't help the much you think. if you looking for nodelay to ip packets you have to wait till we work with ip version6 whitch you set priorty level to your packets. becouse the real delay your packets face is on network specially if it was internet which suffers from congestion. if you work on lan transmission speed much much better
3-about your problem there are many resaons that leads to it, i'll list some of them
a-your system design, sequence of send and recieve messages (Messages cycle) is logically incorrect
b-there is a fact you must keep in mind when working with tcp protocol; that one of tcp problems is that it is not keep message boundry. when you work with it you just write your data on stream if for example you write 4 kb message.it will be segmented to two ip packets and sent. in destaination you wait for one recieve so you will recieve your message as half of original message, second message you recieve is the second half of original message and so on your all messages will be overlaped. to overcome this one way is to send the size of message before message and on destination read size first and never let the stream buffer till you read all bytes according to size. this will help to keep message boundry
c- if you find problems in working with callbacks why don't you work with blocking socktes (synchronize) and put them in threads that would be much simple and easy to mainpulate.
marcoryos
|
|
|
|