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

C / C++ / MFC

 
AnswerRe: How could I get back my Save.cpp ? Pin
Anonymous23-Dec-03 17:58
Anonymous23-Dec-03 17:58 
GeneralRe: How could I get back my Save.cpp ? Pin
ljx23-Dec-03 18:29
ljx23-Dec-03 18:29 
AnswerRe: How could I get back my Save.cpp ? Pin
Gary R. Wheeler26-Dec-03 5:17
Gary R. Wheeler26-Dec-03 5:17 
GeneralRe: How could I get back my Save.cpp ? Pin
ljx28-Dec-03 13:53
ljx28-Dec-03 13:53 
Generalgetting rid of "Not Responding" window titles Pin
shultas23-Dec-03 16:33
shultas23-Dec-03 16:33 
GeneralRe: getting rid of "Not Responding" window titles Pin
Monty223-Dec-03 17:54
Monty223-Dec-03 17:54 
GeneralRe: getting rid of "Not Responding" window titles Pin
Michael Dunn23-Dec-03 18:09
sitebuilderMichael Dunn23-Dec-03 18:09 
Questioncomposing a bitmap buffer ?? Pin
azusakt23-Dec-03 15:10
azusakt23-Dec-03 15:10 
Hi friends,

I'm going to compose a new bitmap by myself, and I'm using buffer to store up the data inside bitmap. But I did it wrong, and I get conflicts on that. can somebody help me and teach me how to store up correct contents in buffer??

I just want to draw a black "cross" on the center of bitmap with (1024x1024 pixel)

  unsigned char  *mBuffer = NULL;
  int i;
  int     mByte = 1024/8;
  int     mWidth = 1024;  // 1024 pixel
  int     mHeight = 1024;

  for(i=1; i<=mHeight; i++)
  {
if(i< mHeight/2)
{
  memset(mBuffer+(i*(mWidth/2)), 0xff, 1);
}
    else if(i==mHeight/2)
    {
  memset(mBuffer+(i*(mWidth)), 0xff, mByte);
    }
else
{
  memset(mBuffer+(i*(mWidth/2)), 0xff, 1);
}
  }


forgive my stupid~, I really don't know how to store up the buffer..

thanks for help
AnswerRe: composing a bitmap buffer ?? Pin
John R. Shaw23-Dec-03 15:29
John R. Shaw23-Dec-03 15:29 
Questionideas? Pin
hingis_fan23-Dec-03 14:03
hingis_fan23-Dec-03 14:03 
AnswerRe: ideas? Pin
John R. Shaw23-Dec-03 15:12
John R. Shaw23-Dec-03 15:12 
GeneralCWinapp::Run Pin
Anthony988723-Dec-03 13:26
Anthony988723-Dec-03 13:26 
GeneralArray of pointers to a functions Pin
veselin_iordanov23-Dec-03 13:17
veselin_iordanov23-Dec-03 13:17 
GeneralRe: Array of pointers to a functions Pin
Simon.W23-Dec-03 14:13
Simon.W23-Dec-03 14:13 
GeneralRe: Array of pointers to a functions Pin
Michael Dunn23-Dec-03 15:35
sitebuilderMichael Dunn23-Dec-03 15:35 
GeneralRe: Array of pointers to a functions Pin
John R. Shaw23-Dec-03 15:54
John R. Shaw23-Dec-03 15:54 
GeneralRe: Array of pointers to a functions Pin
veselin_iordanov24-Dec-03 8:09
veselin_iordanov24-Dec-03 8:09 
GeneralHooking the taskbar Pin
Rickard Andersson2023-Dec-03 13:08
Rickard Andersson2023-Dec-03 13:08 
GeneralRe: Hooking the taskbar Pin
Ryan Binns23-Dec-03 14:59
Ryan Binns23-Dec-03 14:59 
GeneralRe: Hooking the taskbar Pin
Rickard Andersson2024-Dec-03 0:28
Rickard Andersson2024-Dec-03 0:28 
Questionhow to create shortcut of a file from MFC Pin
Binayak23-Dec-03 12:27
Binayak23-Dec-03 12:27 
AnswerRe: how to create shortcut of a file from MFC Pin
Selvam R24-Dec-03 12:39
professionalSelvam R24-Dec-03 12:39 
Questionhow to modify system path? Pin
Binayak23-Dec-03 12:07
Binayak23-Dec-03 12:07 
Questionhow can i add and edit records to MS Access Pin
Member 78215423-Dec-03 12:00
Member 78215423-Dec-03 12:00 
AnswerRe: how can i add and edit records to MS Access Pin
Selvam R24-Dec-03 12:54
professionalSelvam R24-Dec-03 12:54 

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.