Click here to Skip to main content
11,924,825 members (54,992 online)
Rate this:
Please Sign up or sign in to vote.
See more: VC8.0 C++
Am using the following code:: but bool variable returns 0.

bRet = ReadFile( hMcFile, buffer + sizeof(ATA_PASS_THROUGH_EX), segFileSize, &actualBytes, NULL);
Posted 8-Mar-11 19:46pm
Edited 8-Mar-11 20:27pm
Prerak Patel141.4K
Prerak Patel 9-Mar-11 1:30am
post the error from GetLastError, and some more code if required.
Gokulnath007 9-Mar-11 1:41am
thank you.. I have solved it By using QFile::ReadOnly() function.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.151125.3 | Last Updated 17 Sep 2014
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100