For those new to message boards please try to follow a few simple rules when posting your question.
Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
Keep the subject line brief, but descriptive. eg "File Serialization problem"
Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
No advertising or soliciting.
We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
I'm not sure about how to simulate one, but I remember using the standard PC keyboard interrupt to trigger events in a C++ (state machine) program assignment I wrote. My lecturer just loaded it onto his PC with all his work on it to try it out and it worked and importantly then returned normal function to the keyboard interrupt I'd used - Interrupt 9. I used a book 'The undocumented PC for information which is/was very good for this sort of stuff.
As you mention a USB device, try looking at devices that provide Inputs and Outputs - they often have one or more inputs that can be set to trigger an interrupt when their input state is changed - by say a switch. I've used mostly internal PC I/O cards which can trigger interrupts but also USB devices which provide the same functionality. Serial Port connected devices also have/had this functionality - even if your PC may no longer have a 9 pin serial port.
I'm developing an application in vxworks. In this application I use uart in polling mode for reading and writing.
The problem is that when I disable uart interrupt using "intDisable" command, uart generally does not work in polling mode.
The question is whether this is normal? Why uart does not work in polling mode if I disable it's interrupts.
Up front, I apologize if this is not exactly code related , but I am stuck. I am trying to resurrect my Win7 from image. From Win7 setup disk I select “restore from last image / backup”. The restore app identifies the internal SATA drive and lets me select it for restoration. So it knows the drive exists. The resoration process suppose to format the drive, it does not. and the restoration fails and the only option is to “download HD driver”. My XP PC does not use SATA so I cannot let helpful folks scan my PC for this particular drive. I have been unable to find JUST the driver, but I keep looking. The catch is – Win 7 opens \System32 when I try to find the suitable driver. So my basic questions - if the restore apps knows the type of the drive , where in the \System32 is the driver located? If it is there why can the restore app find it for me? Is there any other way to restore the image to the internal drive ON DEAD PC? And reasonable suggestions would be appreciated. Cheers Vaclav PS I have not found answers Googling.