Click here to Skip to main content
15,881,812 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Copying Array elements to a Structure Pin
Cedric Moonen7-Jul-10 22:39
Cedric Moonen7-Jul-10 22:39 
GeneralRe: Copying Array elements to a Structure Pin
T.RATHA KRISHNAN7-Jul-10 22:46
T.RATHA KRISHNAN7-Jul-10 22:46 
GeneralRe: Copying Array elements to a Structure Pin
Cedric Moonen7-Jul-10 22:50
Cedric Moonen7-Jul-10 22:50 
AnswerRe: Copying Array elements to a Structure Pin
Niklas L7-Jul-10 22:46
Niklas L7-Jul-10 22:46 
QuestionData Source connection Pin
raju_shiva7-Jul-10 22:31
raju_shiva7-Jul-10 22:31 
AnswerRe: Data Source connection Pin
Niklas L7-Jul-10 22:38
Niklas L7-Jul-10 22:38 
AnswerRe: Data Source connection Pin
suzuuu8-Jul-10 0:33
suzuuu8-Jul-10 0:33 
QuestionReadFile function retuening zero for HID Device Pin
learningvisualc7-Jul-10 21:46
learningvisualc7-Jul-10 21:46 
Hi all,

I am trying to communicate with HID Devices, but my problem is my ReadFile function always return zero.
I have written the code below
ReadHandle=CreateFile 
		(detailData->DevicePath, 
		GENERIC_READ, 
		FILE_SHARE_READ|FILE_SHARE_WRITE,
		(LPSECURITY_ATTRIBUTES)NULL, 
		OPEN_EXISTING, 
		FILE_FLAG_OVERLAPPED, 
		NULL);
Result = ReadFile 
			(ReadHandle, 
			InputReport, 
			Capabilities.InputReportByteLength, 
			&NumberOfBytesRead,
			(LPOVERLAPPED) &HIDOverlapped);


Before CreateFile i have used all the necessary api's to get the DevicePath value like SetupDiGetDeviceInterfaceDetail

Now, i am not getting that where is the problem.

Thanks in advance
AnswerRe: ReadFile function retuening zero for HID Device Pin
Code-o-mat7-Jul-10 22:27
Code-o-mat7-Jul-10 22:27 
QuestionFind file is copying? [modified] Pin
suzuuu7-Jul-10 20:50
suzuuu7-Jul-10 20:50 
JokeRe: Find file is copying? [modified] Pin
Stephen Hewitt7-Jul-10 21:00
Stephen Hewitt7-Jul-10 21:00 
JokeRe: Find file is copying? Pin
«_Superman_»7-Jul-10 21:10
professional«_Superman_»7-Jul-10 21:10 
JokeRe: Find file is copying? Pin
suzuuu7-Jul-10 22:33
suzuuu7-Jul-10 22:33 
QuestionRe: Find file is copying? Pin
norish7-Jul-10 22:13
norish7-Jul-10 22:13 
AnswerRe: Find file is copying? Pin
suzuuu7-Jul-10 22:28
suzuuu7-Jul-10 22:28 
QuestionRe: Find file is copying? Pin
David Crow8-Jul-10 3:15
David Crow8-Jul-10 3:15 
Questionboost::format Pin
gmallax7-Jul-10 19:56
gmallax7-Jul-10 19:56 
AnswerRe: boost::format Pin
«_Superman_»7-Jul-10 20:02
professional«_Superman_»7-Jul-10 20:02 
GeneralRe: boost::format Pin
gmallax7-Jul-10 20:15
gmallax7-Jul-10 20:15 
GeneralRe: boost::format Pin
«_Superman_»7-Jul-10 20:20
professional«_Superman_»7-Jul-10 20:20 
GeneralRe: boost::format Pin
gmallax7-Jul-10 20:40
gmallax7-Jul-10 20:40 
AnswerRe: boost::format Pin
Stephen Hewitt7-Jul-10 20:54
Stephen Hewitt7-Jul-10 20:54 
GeneralRe: boost::format Pin
Niklas L7-Jul-10 22:10
Niklas L7-Jul-10 22:10 
Questionlist box Pin
AbhiHcl7-Jul-10 19:47
AbhiHcl7-Jul-10 19:47 
AnswerRe: list box Pin
«_Superman_»7-Jul-10 19:49
professional«_Superman_»7-Jul-10 19:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.