Click here to Skip to main content
15,923,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How do you Find out(copy filenames) that is in a directory WITHOUT using the CFileDialog in MFC VS2008 C++ Pin
Nelek18-May-08 7:24
protectorNelek18-May-08 7:24 
GeneralRe: How do you Find out(copy filenames) that is in a directory WITHOUT using the CFileDialog in MFC VS2008 C++ Pin
Larry Mills Sr18-May-08 9:34
Larry Mills Sr18-May-08 9:34 
GeneralRe: How do you Find out(copy filenames) that is in a directory WITHOUT using the CFileDialog in MFC VS2008 C++ Pin
Michael Schubert18-May-08 12:20
Michael Schubert18-May-08 12:20 
GeneralRe: How do you Find out(copy filenames) that is in a directory WITHOUT using the CFileDialog in MFC VS2008 C++ Pin
Nelek18-May-08 12:39
protectorNelek18-May-08 12:39 
QuestionRe: How do you Find out(copy filenames) that is in a directory WITHOUT using the CFileDialog in MFC VS2008 C++ Pin
David Crow19-May-08 4:41
David Crow19-May-08 4:41 
AnswerRe: How do you Find out(copy filenames) that is in a directory WITHOUT using the CFileDialog in MFC VS2008 C++ Pin
Larry Mills Sr19-May-08 16:43
Larry Mills Sr19-May-08 16:43 
QuestionDrawing a bitmap on DC created by BYTE* array Pin
TalSt18-May-08 3:29
TalSt18-May-08 3:29 
AnswerRe: Drawing a bitmap on DC created by BYTE* array [modified] Pin
Baltoro18-May-08 12:20
Baltoro18-May-08 12:20 
When doing this type of drawing for the first time and getting errors, you should check your return values, especially for CreateDIBSection. This can indicate where the problem occurs. I would also provide values for all the fields in the BITMAPINFO header structure. I'm assuming that all the other variables that you didn't explain, are correctly initialized values of some MFC class that you are using, and that the values are correct.
I don't use MFC, but you might read this: Drawing a View[^]
The article states: "A device context is a Windows data structure that contains information about the drawing attributes of a device such as a display or a printer. All drawing calls are made through a device-context object. For drawing on the screen, OnDraw is passed a CPaintDC object. For drawing on a printer, it is passed a CDC object set up for the current printer."

modified on Sunday, May 18, 2008 6:27 PM

AnswerRe: Drawing a bitmap on DC created by BYTE* array Pin
Dan18-May-08 13:31
Dan18-May-08 13:31 
AnswerRe: Drawing a bitmap on DC created by BYTE* array Pin
TalSt18-May-08 19:27
TalSt18-May-08 19:27 
Questionfile accessing problem Pin
Chandrasekharan P18-May-08 3:26
Chandrasekharan P18-May-08 3:26 
AnswerRe: file accessing problem Pin
Nelek18-May-08 7:15
protectorNelek18-May-08 7:15 
AnswerRe: file accessing problem Pin
chandu00418-May-08 19:53
chandu00418-May-08 19:53 
QuestionReading Non-Ole File Property Pin
tprakash18-May-08 3:00
tprakash18-May-08 3:00 
AnswerRe: Reading Non-Ole File Property Pin
thonti29-May-08 23:41
thonti29-May-08 23:41 
AnswerRe: Reading Non-Ole File Property Pin
thonti9-Jun-08 3:50
thonti9-Jun-08 3:50 
Questioninvalid number of parameters in ActiveX Pin
samira forooghi18-May-08 0:37
samira forooghi18-May-08 0:37 
AnswerRe: invalid number of parameters in ActiveX Pin
Nelek18-May-08 0:39
protectorNelek18-May-08 0:39 
GeneralRe: invalid number of parameters in ActiveX Pin
samira forooghi19-May-08 1:55
samira forooghi19-May-08 1:55 
AnswerRe: invalid number of parameters in ActiveX Pin
prasad_som18-May-08 1:04
prasad_som18-May-08 1:04 
QuestionGetControlUnknown Pin
subramanyeswari18-May-08 0:08
subramanyeswari18-May-08 0:08 
AnswerRe: GetControlUnknown Pin
JudyL_MD18-May-08 12:39
JudyL_MD18-May-08 12:39 
QuestionDraw on desktop Pin
capint17-May-08 23:06
capint17-May-08 23:06 
AnswerRe: Draw on desktop [modified] Pin
Nelek17-May-08 23:47
protectorNelek17-May-08 23:47 
GeneralRe: Draw on desktop Pin
capint18-May-08 2:07
capint18-May-08 2:07 

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.