Hi i want to use create file to get a handle on my USB device so that i can stream from it. However i am having problems. To me i appear to have the syntax correct but i get errors returned in the form of
"Undefinded symbol HANDLE"
"statement is missing ;"
Can anyone see what im doing wrong here?
Thank you
HANDLE hRead = CreateFile(
("\\\\?\\F:"),
FILE_GENERIC_READ,
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
0,
NULL);
ifstream f ("hread",std::ios::binary) ;