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

C / C++ / MFC

 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20036-Jan-07 8:36
Yuriy20036-Jan-07 8:36 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery6-Jan-07 11:03
Mark Salsbery6-Jan-07 11:03 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20036-Jan-07 11:56
Yuriy20036-Jan-07 11:56 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery6-Jan-07 12:05
Mark Salsbery6-Jan-07 12:05 
QuestionCMap [modified] Pin
devvvy29-Dec-06 14:44
devvvy29-Dec-06 14:44 
AnswerRe: CMap Pin
Blake Miller2-Jan-07 11:01
Blake Miller2-Jan-07 11:01 
QuestionHow to Detect the Users CD Rom drive Pin
Larry Mills Sr29-Dec-06 13:25
Larry Mills Sr29-Dec-06 13:25 
AnswerRe: How to Detect the Users CD Rom drive Pin
bolivar12329-Dec-06 17:52
bolivar12329-Dec-06 17:52 
You can figure out which drive(s) are CDROM drives using the GetDriveType function:

for (char d='C';d<'Z';d++)
{
CString drive = CString(d)+":\\";
UINT driveType = GetDriveType(drive.GetBuffer(0));
if (driveType == DRIVE_CDROM)
{
//If we make it to here, then drive is a CD-ROM drive.
//Just in case the user has more than one CD-ROM drive,
//You may want to test to see if a specific file (unique to your CD) exists
//on this drive.


}
}

Just curious, why bother writing a home brew installation program when there are a lot of good freeware installation building tools such as InnoSetup or Advanced Installer? You can google to find either of these tools.
AnswerRe: How to Detect the Users CD Rom drive Pin
Gary R. Wheeler30-Dec-06 3:34
Gary R. Wheeler30-Dec-06 3:34 
QuestionWay to tell which process last wrote to a file? Pin
RDarrylR29-Dec-06 12:50
RDarrylR29-Dec-06 12:50 
AnswerRe: Way to tell which process last wrote to a file? Pin
Garth J Lancaster29-Dec-06 13:23
professionalGarth J Lancaster29-Dec-06 13:23 
GeneralRe: Way to tell which process last wrote to a file? Pin
RDarrylR29-Dec-06 13:56
RDarrylR29-Dec-06 13:56 
AnswerRe: Way to tell which process last wrote to a file? Pin
Cristian Amarie29-Dec-06 22:44
Cristian Amarie29-Dec-06 22:44 
GeneralRe: Way to tell which process last wrote to a file? Pin
RDarrylR30-Dec-06 3:23
RDarrylR30-Dec-06 3:23 
AnswerRe: Way to tell which process last wrote to a file? Pin
Hamid_RT30-Dec-06 5:57
Hamid_RT30-Dec-06 5:57 
GeneralRe: Way to tell which process last wrote to a file? Pin
Cristian Amarie30-Dec-06 7:04
Cristian Amarie30-Dec-06 7:04 
QuestionMessage Removed Pin
29-Dec-06 11:31
Armond Sarkisian29-Dec-06 11:31 
AnswerRe: Opening a dialogue window Pin
Hamid_RT29-Dec-06 17:10
Hamid_RT29-Dec-06 17:10 
AnswerRe: Opening a dialogue window Pin
Joan M30-Dec-06 2:34
professionalJoan M30-Dec-06 2:34 
QuestionDriver installation checking Pin
RomTibi29-Dec-06 10:57
RomTibi29-Dec-06 10:57 
AnswerRe: Driver installation checking Pin
Ralf Lohmueller29-Dec-06 14:53
Ralf Lohmueller29-Dec-06 14:53 
GeneralRe: Driver installation checking Pin
RomTibi29-Dec-06 19:25
RomTibi29-Dec-06 19:25 
QuestionVC++6 InitInstance strange thing? Pin
Joan M29-Dec-06 9:59
professionalJoan M29-Dec-06 9:59 
AnswerRe: VC++6 InitInstance strange thing? Pin
David Crow29-Dec-06 10:07
David Crow29-Dec-06 10:07 
GeneralRe: VC++6 InitInstance strange thing? Pin
Joan M29-Dec-06 10:14
professionalJoan M29-Dec-06 10:14 

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.