Click here to Skip to main content
15,898,980 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: How to detect EBCDIC Pin
David Crow18-Feb-10 15:22
David Crow18-Feb-10 15:22 
AnswerRe: How to detect EBCDIC Pin
Luc Pattyn18-Feb-10 10:25
sitebuilderLuc Pattyn18-Feb-10 10:25 
GeneralRe: How to detect EBCDIC Pin
Garth J Lancaster18-Feb-10 10:46
professionalGarth J Lancaster18-Feb-10 10:46 
GeneralRe: How to detect EBCDIC Pin
Hans Dietrich18-Feb-10 10:55
mentorHans Dietrich18-Feb-10 10:55 
RantRe: How to detect EBCDIC (not a helpful answer, just a comment) Pin
Gary R. Wheeler21-Feb-10 1:56
Gary R. Wheeler21-Feb-10 1:56 
GeneralRe: How to detect EBCDIC (not a helpful answer, just a comment) Pin
Rozis21-Feb-10 11:00
Rozis21-Feb-10 11:00 
QuestionMAPIEx Libraries when OutLook is offline Pin
kasi1418-Feb-10 7:17
kasi1418-Feb-10 7:17 
QuestionERROR_INVALID_FUNCTION when calling WriteFile Pin
krishiyengar18-Feb-10 6:08
krishiyengar18-Feb-10 6:08 
I am having problem with communicating with 3M MT7 EX USB touch screen.

I need to send a calibrate request through C++ code, in order to do that I locate the global device path from SetupDi* functions. The global device path returned is:
\\?\USB#Vid_0596&Pid_0001#5&ee85354&0&2#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
Using this device path I successfully get a handle from CreatFile():
<code> m_hUsbDevice = CreateFile(detailData->DevicePath, GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, (LPSECURITY_ATTRIBUTES)NULL, OPEN_EXISTING, 0, NULL);</code>

When I try writing to this handle I get an error:
ERROR_INVALID_FUNCTION

The code for writing is:
<code>WriteFile(m_hUsbDevice, pucString, 8 , &dwWritten, 0)</code>

pucString is pointer to the below structure

<code>struct stCalibrate
{
Byte RequestType;
Byte Request;
short Value;
short Index;
short Length;

stCalibrate()
{
RequestType = 0x40;
Request = 4;
Value = 0x01;
Index = 0;
Length = 0;
}
};</code>
QuestionMessage Removed Pin
18-Feb-10 5:25
tokime18-Feb-10 5:25 
AnswerRe: problem with neural network.. Pin
Richard Andrew x6418-Feb-10 5:34
professionalRichard Andrew x6418-Feb-10 5:34 
AnswerRe: problem with neural network.. Pin
Tim Craig18-Feb-10 7:45
Tim Craig18-Feb-10 7:45 
AnswerRe: problem with neural network.. Pin
Tim Craig19-Feb-10 14:36
Tim Craig19-Feb-10 14:36 
AnswerRe: problem with neural network.. Pin
Stephen Hewitt20-Feb-10 3:30
Stephen Hewitt20-Feb-10 3:30 
QuestionHow to retrive last used on of Installed Application Date Pin
OSHO58018-Feb-10 3:44
OSHO58018-Feb-10 3:44 
AnswerRe: How to retrive last used on of Installed Application Date Pin
rp_suman18-Feb-10 4:53
rp_suman18-Feb-10 4:53 
AnswerRe: How to retrive last used on of Installed Application Date Pin
Randor 19-Feb-10 9:46
professional Randor 19-Feb-10 9:46 
QuestionTree CImageList Drag and Drop Pin
vkpMark18-Feb-10 2:04
vkpMark18-Feb-10 2:04 
AnswerRe: Tree CImageList Drag and Drop [modified] Pin
Eugen Podsypalnikov18-Feb-10 3:09
Eugen Podsypalnikov18-Feb-10 3:09 
QuestionAlternative to memset for kernel mode drivers Pin
Electric Eddy18-Feb-10 0:15
Electric Eddy18-Feb-10 0:15 
AnswerRe: Alternative to memset for kernel mode drivers Pin
Richard MacCutchan18-Feb-10 0:21
mveRichard MacCutchan18-Feb-10 0:21 
AnswerRe: Alternative to memset for kernel mode drivers Pin
CPallini18-Feb-10 0:23
mveCPallini18-Feb-10 0:23 
GeneralRe: Alternative to memset for kernel mode drivers [modified] Pin
Electric Eddy18-Feb-10 13:07
Electric Eddy18-Feb-10 13:07 
QuestionInstall INF file Pin
john563217-Feb-10 23:54
john563217-Feb-10 23:54 
AnswerRe: Install INF file Pin
Richard MacCutchan18-Feb-10 0:18
mveRichard MacCutchan18-Feb-10 0:18 
GeneralRe: Install INF file Pin
john563218-Feb-10 0:20
john563218-Feb-10 0:20 

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.