Click here to Skip to main content
15,922,155 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: char to store < 255 or use int Pin
toxcct17-Dec-05 2:10
toxcct17-Dec-05 2:10 
GeneralRe: char to store < 255 or use int Pin
toxcct17-Dec-05 2:07
toxcct17-Dec-05 2:07 
GeneralRe: char to store < 255 or use int Pin
Gerben Jongerius17-Dec-05 3:31
Gerben Jongerius17-Dec-05 3:31 
Questionhow can i get the ip of my system Pin
cancerion16-Dec-05 21:05
cancerion16-Dec-05 21:05 
AnswerRe: how can i get the ip of my system Pin
ThatsAlok16-Dec-05 21:52
ThatsAlok16-Dec-05 21:52 
Questiondirectshow sdk Pin
dolph_loe16-Dec-05 20:56
dolph_loe16-Dec-05 20:56 
AnswerRe: directshow sdk Pin
Farhat Aisha18-Dec-05 3:18
Farhat Aisha18-Dec-05 3:18 
QuestionListCtrl / gridcontrol containing tree control in VC++ Pin
doubts.vc16-Dec-05 20:16
doubts.vc16-Dec-05 20:16 
AnswerRe: ListCtrl / gridcontrol containing tree control in VC++ Pin
Ravi Bhavnani17-Dec-05 3:24
professionalRavi Bhavnani17-Dec-05 3:24 
GeneralRe: ListCtrl / gridcontrol containing tree control in VC++ Pin
doubts.vc20-Dec-05 16:43
doubts.vc20-Dec-05 16:43 
QuestionSome problem facing when using Direct show for streaming media Pin
StarMeteor16-Dec-05 19:17
StarMeteor16-Dec-05 19:17 
QuestionSending text to chat via Edit Pin
tansey416-Dec-05 17:53
tansey416-Dec-05 17:53 
AnswerRe: Sending text to chat via Edit Pin
VikramDelhi16-Dec-05 20:29
VikramDelhi16-Dec-05 20:29 
GeneralRe: Sending text to chat via Edit Pin
tansey416-Dec-05 21:43
tansey416-Dec-05 21:43 
QuestionDestroying the window Pin
chethu66516-Dec-05 17:06
chethu66516-Dec-05 17:06 
Questiondrawing HICON Pin
T1TAN16-Dec-05 15:29
T1TAN16-Dec-05 15:29 
AnswerRe: drawing HICON Pin
PJ Arends16-Dec-05 17:15
professionalPJ Arends16-Dec-05 17:15 
GeneralRe: drawing HICON Pin
T1TAN17-Dec-05 13:11
T1TAN17-Dec-05 13:11 
QuestionSetting hi and low-order words Pin
Alex Orovetskiy16-Dec-05 11:23
Alex Orovetskiy16-Dec-05 11:23 
AnswerRe: Setting hi and low-order words Pin
Nish Nishant16-Dec-05 11:27
sitebuilderNish Nishant16-Dec-05 11:27 
GeneralRe: Setting hi and low-order words Pin
Alex Orovetskiy16-Dec-05 11:40
Alex Orovetskiy16-Dec-05 11:40 
AnswerRe: Setting hi and low-order words Pin
Jörgen Sigvardsson16-Dec-05 12:23
Jörgen Sigvardsson16-Dec-05 12:23 
GeneralRe: Setting hi and low-order words Pin
Alex Orovetskiy16-Dec-05 21:46
Alex Orovetskiy16-Dec-05 21:46 
AnswerRe: Setting hi and low-order words Pin
ThatsAlok16-Dec-05 21:54
ThatsAlok16-Dec-05 21:54 
QuestionWriteFile hangs Pin
dave siegfried16-Dec-05 10:12
dave siegfried16-Dec-05 10:12 
I am sending a report to a HID device. I have created a handle using:

WriteHandle=CreateFile
(detailData->DevicePath,
GENERIC_WRITE,
FILE_SHARE_READ|FILE_SHARE_WRITE,
(LPSECURITY_ATTRIBUTES)NULL,
OPEN_EXISTING,
0,
NULL);

I then write a report:

OutputReport[0]=0;
OutputReport[1]=1;
OutputReport[2]=2;
OutputReport[3]=3;
OutputReport[4]=4;
OutputReport[5]=5;
OutputReport[6]=6;
OutputReport[7]=7;

Result = WriteFile
(WriteHandle,
OutputReport,
Capabilities.OutputReportByteLength,
&BytesWritten,
NULL);

The first time I send a report,it works just fine. I checked the protocol analyzer and I see the report in its entirety. No problem.

The second time I send the report it hangs. I don't need overlapped I/O, as I wait for the report to finish. I am not receiving any reports from the device. Got any ideas?





Dave

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.