Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can detect the vendor of Audio Codec ? Pin
HansonDavid16-Feb-04 17:40
HansonDavid16-Feb-04 17:40 
GeneralVisual Studio.NET 2003 Pin
Gagnon Claude16-Feb-04 17:25
Gagnon Claude16-Feb-04 17:25 
GeneralRe: Visual Studio.NET 2003 Pin
Selvam R16-Feb-04 21:02
professionalSelvam R16-Feb-04 21:02 
GeneralHelp! for access the parallel port Pin
jfk_lili16-Feb-04 16:55
jfk_lili16-Feb-04 16:55 
GeneralRe: Help! for access the parallel port Pin
John M. Drescher16-Feb-04 17:05
John M. Drescher16-Feb-04 17:05 
GeneralRe: Help! for access the parallel port Pin
John M. Drescher16-Feb-04 17:09
John M. Drescher16-Feb-04 17:09 
GeneralRe: Help! for access the parallel port Pin
Andrew Walker16-Feb-04 19:49
Andrew Walker16-Feb-04 19:49 
Questionhow to read the CD_ROM sectors Pin
longdafeng16-Feb-04 15:15
longdafeng16-Feb-04 15:15 
hi:
I want to read the CD_ROM MODE2 sectros,but I don't know what's wrong with the code.The "Result" is TRUE and "error" is 0,but there is no data in the "lpSector".
who can help me.

thank you very much

hCD = CreateFile ("\\\\.\\M:", GENERIC_READ,
FILE_SHARE_READ|FILE_SHARE_WRITE,
NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL,
NULL);
RAW_READ_INFO raw_info;
ZeroMemory(&raw_info,sizeof(raw_info));

raw_info.DiskOffset.QuadPart =2000*2352 ;
raw_info.SectorCount = 10;
raw_info.TrackMode = YellowMode2;

Result=DeviceIoControl(hCD, IOCTL_CDROM_RAW_READ,
&raw_info, sizeof(RAW_READ_INFO),
lpSector, dwSize,
&dwNotUsed, NULL);
DWORD error=GetLastError();
WriteFile (hFile, lpSector, dwSize, &dwNotUsed, NULL);
AnswerRe: how to read the CD_ROM sectors Pin
John M. Drescher16-Feb-04 15:46
John M. Drescher16-Feb-04 15:46 
GeneralRe: how to read the CD_ROM sectors Pin
longdafeng16-Feb-04 16:04
longdafeng16-Feb-04 16:04 
GeneralRe: how to read the CD_ROM sectors - EDITED Pin
John M. Drescher16-Feb-04 16:07
John M. Drescher16-Feb-04 16:07 
GeneralRe: how to read the CD_ROM sectors Pin
John M. Drescher16-Feb-04 16:28
John M. Drescher16-Feb-04 16:28 
GeneralRe: how to read the CD_ROM sectors Pin
longdafeng16-Feb-04 16:47
longdafeng16-Feb-04 16:47 
GeneralConstraining CWnd size Pin
garycage16-Feb-04 14:52
garycage16-Feb-04 14:52 
GeneralRe: Constraining CWnd size Pin
John M. Drescher16-Feb-04 16:01
John M. Drescher16-Feb-04 16:01 
Generalproblems with static members Pin
Ylis16-Feb-04 12:32
Ylis16-Feb-04 12:32 
GeneralRe: problems with static members Pin
Robert A. T. Káldy16-Feb-04 13:08
Robert A. T. Káldy16-Feb-04 13:08 
GeneralRe: problems with static members Pin
Ylis16-Feb-04 13:27
Ylis16-Feb-04 13:27 
GeneralRe: problems with static members Pin
John M. Drescher16-Feb-04 13:17
John M. Drescher16-Feb-04 13:17 
GeneralRe: problems with static members Pin
Ylis16-Feb-04 13:53
Ylis16-Feb-04 13:53 
GeneralRe: problems with static members Pin
John M. Drescher16-Feb-04 16:26
John M. Drescher16-Feb-04 16:26 
GeneralRe: problems with static members Pin
Robert A. T. Káldy17-Feb-04 0:31
Robert A. T. Káldy17-Feb-04 0:31 
Generalif-Statement getting me crazy Pin
User 665816-Feb-04 11:28
User 665816-Feb-04 11:28 
GeneralRe: if-Statement getting me crazy Pin
Christian Graus16-Feb-04 11:36
protectorChristian Graus16-Feb-04 11:36 
GeneralRe: if-Statement getting me crazy Pin
John M. Drescher16-Feb-04 11:43
John M. Drescher16-Feb-04 11:43 

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.