|
Hi, it's a little harder to read from an USB port instead of a RS232 port, but here's some source code for you: http://www.lvr.com/hidpage.htm[^] (Resources for Developers of USB Devices in the Human Interface Device Class)
|
|
|
|
|
You have to communicate with a device driver for the USB device since you cannot access hardware from user mode.
Most USB device drivers adds one or more virtual COM ports that can be used the same way as any ordinary COM port, i.e. using ::CreateFile(), ::ReadFile(), ::WriteFile() and so on.
Have a look in Hardware Programming section[^] for more info about how to communicate with COM ports and similar.
Hope this helps
--
Roger
It's supposed to be hard, otherwise anybody could do it!
|
|
|
|
|
You don't communicate with the USB port in the same way as, say, a COM port, but with the device attached to the USB port via the driver.
The tigress is here
|
|
|
|
|
try http://www.codeproject.com/system/cserialcom.asp
|
|
|
|
|
hi i want to make a transform filter which has only one input but can give two output pins. if i inherit my class from CTranformFilter it give me only one output pin and one input pin.....plzzzzz help me
|
|
|
|
|
How to set pixels in Bitmap? I created bitmap by using createbitmap(..), but i need to higlight the pixels at certain cordiantes like (20,20),(30,30).......How shooudl i proceed?
-- modified at 6:42 Friday 24th March, 2006
|
|
|
|
|
|
thank u for your reply, how could i use it for C coding?
|
|
|
|
|
//or you can use
HDC hdc=CreateCompatibleDC(GetDC()->m_hDC);
HBITMAP hBit=CreateCompatibleBitmap(GetDC()->m_hDC,X,Y);
SelectObject(hdc,hBit);
...
...
SetPixel(hdc,20,20,RGB(120,120,120));
|
|
|
|
|
i want to check status of computer which is online or offline at the time of my application running .i am using "InternetGetConnectedStateEx(...)" but it is checking LAN connection not give state of internet properly .
what i have to do for this please share ur knowledge with me.
Bankey Khandelwal
Software Engineer
|
|
|
|
|
InternetGetConnectedStateEx
|
|
|
|
|
i am using this function but it does not give proper result it checks only LAN connection .
Bankey Khandelwal
Software Engineer
|
|
|
|
|
This question has come up on the forums a few times, as its a nasty one. Unfortunately, there is
no "Am I connected to the wide world" function, as Windows simply does not know the answer.
About all it can do is tell you whether you have a local connection.
Previous answers to the question combine GetInternetConnectedEx function, with trying to access
popular sites like www.microsoft.com, google, etc.
Sorry the news isn't better!
Iain.
|
|
|
|
|
To add to the former message, its like asking "Is my phone connectable to other people?".
You can tell if there is a dial tone (GetInternetConnected), but the only way to know if
you can ring people, is to actually ring them!
Iain.
|
|
|
|
|
Hi, you could make a worker thread whose creating a connection to a server (e.g. www.yahoo.com) on a specified interval of time. That's the safer way! Good luck and good coding!
|
|
|
|
|
|
Advanced Animation With DirectX(Chap13 Softbody)
The the example of book like problematic, the karate clothes girl's chest will explode. (should be bug )
I guess author to is it display chest may soft beating to want
Do not know anyone studies this example ? Want can just be correct how to revise?
|
|
|
|
|
What does it take to shift one's codebase from VC++ 6.0 to VC++ 7.0? (Unmanaged). Any good reasons that I can give my boss to make him shift to VC++ 7.0? :-> I just love the .NET UI and hate the old VC++ 6.0 UI but that reason is just not enough. I need some more solid reason. I read somewhere that Microsoft is removing its support for VC++ 6.0. What does that mean? Will office COM addins written in VC++ 7.0 still work with Office 2000???
HELP!!!
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
Standard compliance is definitely a more obvious reason...
VC6 compiler is full of crap. but VC2005 is more sticking to the standard than 2003 though (if you could choose between one or other).
|
|
|
|
|
SO what do I tell my boss????
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
thell him that it is important to stick to the C++ standard, so he'd better switch to VS2005, or at least VS2003.
what didn't you understand in my answer ?
oh, BTW, VC6 support has been abandonned by Microsoft last year...
|
|
|
|
|
v2.0 wrote: oh, BTW, VC6 support has been abandonned by Microsoft last year...
What exactly does remove support mean? Does it mean that any problems with the compiler will not be dealt with or that any product written in VC++ 6.0 will not be recognized by microsoft?
Thanks for your answers
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
remove support mean that if you have a problem with VC6 and want to ask microsoft for that problem, they won't answer you...
|
|
|
|
|
Hi, you should consider moving to VC++ 7.X/8.0 because those are more compatible with the futures offered by Windows 2000/XP. Personaly, I like the themes from Windows XP and I'm wroting only theme-enabled WIN32 applications. Other reasons would be a better IDE and a better/faster C++ compiler etc.
|
|
|
|
|
So you mean, code will compile faster in VC++ 7.0 than in VC++ 6.0? Is the VC++ 7.0 compiler better than the VC++ 6.0 compiler?
Thanks for your help!
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|