Click here to Skip to main content
15,905,558 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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
QuestionRe: WriteFile hangs Pin
David Crow16-Dec-05 14:55
David Crow16-Dec-05 14:55 
Question#pragma once, #ifndef problem Pin
werfel16-Dec-05 10:06
werfel16-Dec-05 10:06 
AnswerRe: #pragma once, #ifndef problem Pin
Maximilien16-Dec-05 10:12
Maximilien16-Dec-05 10:12 
GeneralRe: #pragma once, #ifndef problem Pin
werfel16-Dec-05 10:17
werfel16-Dec-05 10:17 
GeneralRe: #pragma once, #ifndef problem Pin
Maximilien16-Dec-05 10:22
Maximilien16-Dec-05 10:22 
GeneralRe: #pragma once, #ifndef problem Pin
werfel16-Dec-05 10:26
werfel16-Dec-05 10:26 
GeneralRe: #pragma once, #ifndef problem Pin
Michael Dunn16-Dec-05 10:59
sitebuilderMichael Dunn16-Dec-05 10:59 
GeneralRe: #pragma once, #ifndef problem Pin
werfel16-Dec-05 11:15
werfel16-Dec-05 11:15 
GeneralRe: #pragma once, #ifndef problem Pin
werfel16-Dec-05 11:34
werfel16-Dec-05 11:34 
GeneralRe: #pragma once, #ifndef problem Pin
Shog916-Dec-05 12:20
sitebuilderShog916-Dec-05 12:20 
GeneralRe: #pragma once, #ifndef problem Pin
werfel16-Dec-05 14:55
werfel16-Dec-05 14:55 
GeneralRe: #pragma once, #ifndef problem Pin
Shog916-Dec-05 17:04
sitebuilderShog916-Dec-05 17:04 
GeneralRe: #pragma once, #ifndef problem Pin
Jörgen Sigvardsson18-Dec-05 9:02
Jörgen Sigvardsson18-Dec-05 9:02 
GeneralRe: #pragma once, #ifndef problem Pin
#realJSOP16-Dec-05 10:23
professional#realJSOP16-Dec-05 10:23 
GeneralRe: #pragma once, #ifndef problem Pin
werfel16-Dec-05 10:27
werfel16-Dec-05 10:27 
AnswerRe: #pragma once, #ifndef problem Pin
Nemanja Trifunovic16-Dec-05 10:56
Nemanja Trifunovic16-Dec-05 10:56 
GeneralRe: #pragma once, #ifndef problem Pin
werfel16-Dec-05 11:04
werfel16-Dec-05 11:04 

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.