Click here to Skip to main content
15,947,079 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question"Ok" and "Apply" functions are overruled by the other property pages. Pin
aravind.sn23-Jul-09 1:14
aravind.sn23-Jul-09 1:14 
AnswerRe: "Ok" and "Apply" functions are overruled by the other property pages. Pin
uraeu23-Jul-09 3:03
uraeu23-Jul-09 3:03 
GeneralRe: "Ok" and "Apply" functions are overruled by the other property pages. Pin
aravind.sn23-Jul-09 3:14
aravind.sn23-Jul-09 3:14 
QuestionIn Windows Operating system where does the ACL of an object is stored Pin
Anil Veeraghattapu 423-Jul-09 0:52
Anil Veeraghattapu 423-Jul-09 0:52 
AnswerRe: In Windows Operating system where does the ACL of an object is stored [modified] Pin
Adam Roderick J23-Jul-09 1:08
Adam Roderick J23-Jul-09 1:08 
QuestionVisual C++ MFC,CDocument::SetTitle invalid Pin
akira3222-Jul-09 21:38
akira3222-Jul-09 21:38 
AnswerRe: Visual C++ MFC,CDocument::SetTitle invalid Pin
Kushagra Tiwari23-Jul-09 0:04
Kushagra Tiwari23-Jul-09 0:04 
QuestionProblem with ReadFile Funhction Pin
Shiv Murti Pal22-Jul-09 21:19
Shiv Murti Pal22-Jul-09 21:19 
Hello all,
i am using ReadFile function to Read a Sector from different type of storage devices like Pen Drive, Hard Disk, Memory Card iPod.

with all devices excluding iPod it is working fine means it return 1.
when i am trying to Read iPod it fails means it return 0;

i am using apples 120 GB iPOD, and when i try to get error Code by using
DWORD dw = GetLastError();
it is 87


/////used by window9x

long drive_num;
int sector, disk_read;
int drive_no;
char drv,szflp_drv[20];

strcpy(szflp_drv , "\\\\.\\a:");

char phydisk[20];
strcpy(phydisk,p);// p is a string like "\\\\.\\PhysicalDrive0",+"Drive No"
//Ex. if Drive No.3 then "\\\\.\\PhysicalDrive3",
drv = p[17];

/////used by windowsnt
HANDLE hCD;
DWORD dwNotUsed;



drive_no = atoi(&drv);
///////////////////////////////////
//////Check which os is installed




hCD = CreateFile (phydisk, GENERIC_READ ,
FILE_SHARE_READ|FILE_SHARE_WRITE,
NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL,
NULL);

if (hCD != INVALID_HANDLE_VALUE)
{
DWORD dwSize = total_sector * 512;
__int64 y=512*start_sector;
__int64 ss= myFileSeek(hCD,y,FILE_BEGIN);

int aa;
aa = ReadFile (hCD, buffer, dwSize, &dwNotUsed, NULL);

DWORD dw = GetLastError();
}
AnswerRe: Problem with ReadFile Funhction Pin
Michael Schubert22-Jul-09 21:47
Michael Schubert22-Jul-09 21:47 
GeneralRe: Problem with ReadFile Funhction Pin
Shiv Murti Pal22-Jul-09 23:37
Shiv Murti Pal22-Jul-09 23:37 
GeneralRe: Problem with ReadFile Funhction Pin
Michael Schubert22-Jul-09 23:53
Michael Schubert22-Jul-09 23:53 
GeneralRe: Problem with ReadFile Funhction Pin
Shiv Murti Pal23-Jul-09 2:27
Shiv Murti Pal23-Jul-09 2:27 
GeneralRe: Problem with ReadFile Funhction Pin
krmed23-Jul-09 2:51
krmed23-Jul-09 2:51 
GeneralRe: Problem with ReadFile Funhction Pin
Shiv Murti Pal23-Jul-09 18:56
Shiv Murti Pal23-Jul-09 18:56 
GeneralRe: Problem with ReadFile Funhction Pin
Shiv Murti Pal24-Jul-09 1:25
Shiv Murti Pal24-Jul-09 1:25 
QuestionHow to generate Keyboard events ? Pin
Member 383463022-Jul-09 21:14
Member 383463022-Jul-09 21:14 
AnswerRe: How to generate Keyboard events ? Pin
Emilio Garavaglia22-Jul-09 21:52
Emilio Garavaglia22-Jul-09 21:52 
AnswerRe: How to generate Keyboard events ? Pin
«_Superman_»22-Jul-09 22:18
professional«_Superman_»22-Jul-09 22:18 
AnswerRe: How to generate Keyboard events ? Pin
Adam Roderick J22-Jul-09 22:45
Adam Roderick J22-Jul-09 22:45 
GeneralRe: How to generate Keyboard events ? Pin
Kushagra Tiwari23-Jul-09 0:16
Kushagra Tiwari23-Jul-09 0:16 
GeneralRe: How to generate Keyboard events ? Pin
Member 383463023-Jul-09 0:43
Member 383463023-Jul-09 0:43 
AnswerRe: How to generate Keyboard events ? Pin
Adam Roderick J23-Jul-09 18:26
Adam Roderick J23-Jul-09 18:26 
QuestionGetting client computer name using its IP Pin
sunny_vc22-Jul-09 21:09
sunny_vc22-Jul-09 21:09 
AnswerRe: Getting client computer name using its IP Pin
Stuart Dootson22-Jul-09 21:40
professionalStuart Dootson22-Jul-09 21:40 
AnswerRe: Getting client computer name using its IP Pin
Emilio Garavaglia22-Jul-09 21:58
Emilio Garavaglia22-Jul-09 21:58 

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.