Click here to Skip to main content
15,925,782 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MAPI/CDO from an NT Service Pin
Mike Dimmick13-Oct-03 1:39
Mike Dimmick13-Oct-03 1:39 
GeneralRe: MAPI/CDO from an NT Service Pin
thowra13-Oct-03 1:45
thowra13-Oct-03 1:45 
GeneralRe: MAPI/CDO from an NT Service Pin
Mike Dimmick13-Oct-03 1:53
Mike Dimmick13-Oct-03 1:53 
GeneralRe: MAPI/CDO from an NT Service Pin
thowra13-Oct-03 2:47
thowra13-Oct-03 2:47 
Generalwstring/string Pin
Tomas Wilhelmsson13-Oct-03 1:16
Tomas Wilhelmsson13-Oct-03 1:16 
GeneralRe: wstring/string Pin
Anand Paranjpe13-Oct-03 1:32
Anand Paranjpe13-Oct-03 1:32 
GeneralRe: wstring/string Pin
Taka Muraoka13-Oct-03 1:53
Taka Muraoka13-Oct-03 1:53 
GeneralStoring a bitmap Pin
Dave Harper13-Oct-03 1:07
Dave Harper13-Oct-03 1:07 
Confused | :confused:
Please help and correct me if I am using the incorrect method (I am only learning). What I am trying to do is save a frame from a buffer to a .bmp file. The buffer contains the bits of a bmp image which is 768 * 576 * 32bit. Here is the code that I have been trying to get to work.

CBitmap FrameBitmap;
CFile myBmpFile("Captures/test.bmp", CFile::modeCreate | CFile::modeReadWrite);

//Create the storing archive.
CArchive arStore(&myBmpFile, CArchive::store);

//Create the CBitmap
FrameBitmap.CreateBitmap(768,576,1,32,pImageBuffer);

if(FrameBitmap.IsSerializable())
{
FrameBitmap.Serialize(arStore);
}
//Close the archive and the file
arStore.Close();
myBmpFile.Close();



Thanks

Dave
GeneralRe: Storing a bitmap Pin
Dave Harper13-Oct-03 8:17
Dave Harper13-Oct-03 8:17 
GeneralRe: Storing a bitmap Pin
David Crow13-Oct-03 9:56
David Crow13-Oct-03 9:56 
GeneralRe: Storing a bitmap Pin
Dave Harper13-Oct-03 10:21
Dave Harper13-Oct-03 10:21 
GeneralUsing C# in MFC Project Pin
afshinghaffari13-Oct-03 0:38
afshinghaffari13-Oct-03 0:38 
GeneralRe: Using C# in MFC Project Pin
Anthony_Yio13-Oct-03 0:53
Anthony_Yio13-Oct-03 0:53 
GeneralLinking functions to keystrokes Pin
BoudewijnEctor13-Oct-03 0:27
BoudewijnEctor13-Oct-03 0:27 
GeneralRe: Linking functions to keystrokes Pin
Mike Dimmick13-Oct-03 1:49
Mike Dimmick13-Oct-03 1:49 
GeneralStrRetToStr Pin
hph13-Oct-03 0:20
hph13-Oct-03 0:20 
GeneralRe: StrRetToStr Pin
Anand Paranjpe13-Oct-03 1:08
Anand Paranjpe13-Oct-03 1:08 
GeneralRe: StrRetToStr Pin
hph13-Oct-03 1:11
hph13-Oct-03 1:11 
GeneralRe: StrRetToStr Pin
Anand Paranjpe13-Oct-03 1:21
Anand Paranjpe13-Oct-03 1:21 
GeneralRe: StrRetToStr Pin
Michael P Butler13-Oct-03 1:37
Michael P Butler13-Oct-03 1:37 
GeneralRe: StrRetToStr Pin
hph13-Oct-03 2:39
hph13-Oct-03 2:39 
GeneralRe: StrRetToStr Pin
ELEFK13-Oct-03 4:17
sussELEFK13-Oct-03 4:17 
GeneralFind in files causes VS.NET to hang Pin
ed welch13-Oct-03 0:13
ed welch13-Oct-03 0:13 
GeneralFindFirstChangeNotification Pin
Liorsh13-Oct-03 0:07
Liorsh13-Oct-03 0:07 
GeneralRe: FindFirstChangeNotification Pin
Neville Franks13-Oct-03 1:52
Neville Franks13-Oct-03 1:52 

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.