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

C / C++ / MFC

 
GeneralRe: Large File Processing Pin
kagdizuber26-Dec-07 5:23
kagdizuber26-Dec-07 5:23 
GeneralRe: Large File Processing Pin
Sangeetha_J26-Dec-07 17:18
Sangeetha_J26-Dec-07 17:18 
QuestionWhat about the efficency of DrawImage and coordinate transformation in GDI+ [modified] Pin
followait24-Dec-07 19:39
followait24-Dec-07 19:39 
QuestionDLLs for MFC Activex Controll Pin
manish.patel24-Dec-07 18:39
manish.patel24-Dec-07 18:39 
GeneralRe: DLLs for MFC Activex Controll Pin
_AnsHUMAN_ 24-Dec-07 20:48
_AnsHUMAN_ 24-Dec-07 20:48 
GeneralRe: DLLs for MFC Activex Controll Pin
manish.patel24-Dec-07 20:52
manish.patel24-Dec-07 20:52 
GeneralRe: DLLs for MFC Activex Controll Pin
_AnsHUMAN_ 24-Dec-07 20:54
_AnsHUMAN_ 24-Dec-07 20:54 
QuestionHow to use GetBitmapBits( ) correctly Pin
Chen-XuNuo24-Dec-07 17:20
Chen-XuNuo24-Dec-07 17:20 
I want to save a 24 bit bitmap's RGB data as a file.I firstly import it to resource editor.

void CReadView::OnDraw(CDC* pDC)
{
CReadDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here

int i,j;
int counter=0;
BYTE data[640*480*3];
CBitmap bmp;

bmp.LoadBitmap(IDB_BITMAP1);
bmp.GetBitmapBits(640*480*3,data);

BITMAP bitmap;
bmp.GetBitmap(&bitmap);

for(i=0;i<bitmap.bmHeight;i++)
for(j=0;j<bitmap.bmWidth;j++)
{
pDC->SetPixel(j,i, RGB(data[counter],data[counter+1],data[counter+2]));
counter+=3;
}
}

The result is not correct.Confused | :confused:
AnswerRe: How to use GetBitmapBits( ) correctly Pin
Anthony Appleyard24-Dec-07 20:21
Anthony Appleyard24-Dec-07 20:21 
GeneralDLL_THREAD_ATTACH and The Tls Api,s Pin
ForNow24-Dec-07 16:03
ForNow24-Dec-07 16:03 
GeneralRe: DLL_THREAD_ATTACH and The Tls Api,s Pin
peterchen24-Dec-07 20:52
peterchen24-Dec-07 20:52 
GeneralRe: DLL_THREAD_ATTACH and The Tls Api,s Pin
ForNow24-Dec-07 21:48
ForNow24-Dec-07 21:48 
GeneralRe: DLL_THREAD_ATTACH and The Tls Api,s Pin
peterchen25-Dec-07 5:29
peterchen25-Dec-07 5:29 
GeneralRe: DLL_THREAD_ATTACH and The Tls Api,s Pin
ForNow25-Dec-07 7:00
ForNow25-Dec-07 7:00 
GeneralWhich .DLL's may be needed by a program compiled by Visual C++ 2008 (free download version)? [modified] Pin
Anthony Appleyard24-Dec-07 10:53
Anthony Appleyard24-Dec-07 10:53 
GeneralRe: Which .DLL's may be needed by a program compiled by Visual C++ 2008 (free download version)? Pin
Bram van Kampen24-Dec-07 13:11
Bram van Kampen24-Dec-07 13:11 
GeneralRe: Which .DLL's may be needed by a program compiled by Visual C++ 2008 (free download version)? Pin
Mark Salsbery24-Dec-07 14:58
Mark Salsbery24-Dec-07 14:58 
GeneralRe: Which .DLL's may be needed by a program compiled by Visual C++ 2008 (free download version)? Pin
Anthony Appleyard24-Dec-07 20:13
Anthony Appleyard24-Dec-07 20:13 
QuestionHow to get DNS addresses from a local pc. Pin
daavena24-Dec-07 3:13
daavena24-Dec-07 3:13 
GeneralDXF solution Pin
Becker24-Dec-07 2:44
Becker24-Dec-07 2:44 
QuestionDWG viewer using VC++ Pin
jakuar24-Dec-07 2:34
sussjakuar24-Dec-07 2:34 
GeneralRe: DWG viewer using VC++ Pin
Joan M29-Dec-07 11:02
professionalJoan M29-Dec-07 11:02 
QuestionCreating views in Top Level MDI Pin
snir_ya24-Dec-07 0:59
snir_ya24-Dec-07 0:59 
QuestionRe: Creating views in Top Level MDI Pin
Nishad S24-Dec-07 2:22
Nishad S24-Dec-07 2:22 
QuestionRe: Creating views in Top Level MDI Pin
snir_ya24-Dec-07 3:10
snir_ya24-Dec-07 3:10 

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.