Click here to Skip to main content
15,891,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Child dialog Pin
llp00na28-Mar-06 0:17
llp00na28-Mar-06 0:17 
GeneralRe: Child dialog Pin
llp00na28-Mar-06 0:43
llp00na28-Mar-06 0:43 
QuestionReading BMP file Pin
Alinuxcs27-Mar-06 8:15
Alinuxcs27-Mar-06 8:15 
QuestionRe: Reading BMP file Pin
David Crow27-Mar-06 8:40
David Crow27-Mar-06 8:40 
AnswerRe: Reading BMP file Pin
Alinuxcs28-Mar-06 4:43
Alinuxcs28-Mar-06 4:43 
GeneralRe: Reading BMP file Pin
David Crow28-Mar-06 5:06
David Crow28-Mar-06 5:06 
GeneralRe: Reading BMP file Pin
Alinuxcs28-Mar-06 6:31
Alinuxcs28-Mar-06 6:31 
QuestionRe: Reading BMP file Pin
David Crow28-Mar-06 7:20
David Crow28-Mar-06 7:20 
Alinuxcs wrote:
that wasn't wat i thoght
u may be miss under stand me


You wanted to process a .bmp file "byte by byte." What's wrong with:

HANDLE  hFile;
DWORD   dwBytesRead;
BYTE    buff;
       
hFile = CreateFile("c:\\windows\\Coffee Bean.bmp", GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, NULL);
    
do
{
    ReadFile(hFile, &buff, 1, &dwBytesRead, NULL);
} while (dwBytesRead == 1);
 
CloseHandle(hFile);



"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

"There is no death, only a change of worlds." - Native American Proverb


AnswerRe: Reading BMP file Pin
Hamid_RT27-Mar-06 19:34
Hamid_RT27-Mar-06 19:34 
AnswerRe: Reading BMP file Pin
Alinuxcs28-Mar-06 4:45
Alinuxcs28-Mar-06 4:45 
QuestionCreate true-type font of my own Pin
includeh1027-Mar-06 6:06
includeh1027-Mar-06 6:06 
QuestionTrying to print with WritePrinter Pin
zaro33327-Mar-06 5:05
zaro33327-Mar-06 5:05 
QuestionRe: Trying to print with WritePrinter Pin
David Crow27-Mar-06 7:14
David Crow27-Mar-06 7:14 
AnswerRe: Trying to print with WritePrinter Pin
zaro33328-Mar-06 8:48
zaro33328-Mar-06 8:48 
QuestionRe: Trying to print with WritePrinter Pin
David Crow28-Mar-06 9:20
David Crow28-Mar-06 9:20 
AnswerRe: Trying to print with WritePrinter Pin
zaro3334-Apr-06 3:23
zaro3334-Apr-06 3:23 
GeneralRe: Trying to print with WritePrinter Pin
David Crow4-Apr-06 3:32
David Crow4-Apr-06 3:32 
AnswerRe: Trying to print with WritePrinter Pin
Hamid_RT27-Mar-06 19:41
Hamid_RT27-Mar-06 19:41 
QuestionHow to know whether a font (say Times New Roman) is installed in a system? Pin
Aryan S27-Mar-06 4:38
Aryan S27-Mar-06 4:38 
AnswerRe: How to know whether a font (say Times New Roman) is installed in a system? Pin
David Crow27-Mar-06 4:41
David Crow27-Mar-06 4:41 
AnswerRe: How to know whether a font (say Times New Roman) is installed in a system? Pin
ThatsAlok27-Mar-06 23:09
ThatsAlok27-Mar-06 23:09 
QuestionOverriding CHtmlView::Ondraw Pin
c_jangid27-Mar-06 4:02
c_jangid27-Mar-06 4:02 
QuestionSending mail... Pin
mkoliv27-Mar-06 3:32
mkoliv27-Mar-06 3:32 
AnswerRe: Sending mail... Pin
David Crow27-Mar-06 4:42
David Crow27-Mar-06 4:42 
AnswerRe: Sending mail... Pin
Hamid_RT27-Mar-06 5:06
Hamid_RT27-Mar-06 5:06 

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.