Click here to Skip to main content
16,006,494 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DLL Pin
23-Nov-00 5:03
suss23-Nov-00 5:03 
QuestionAnyone know how to split up an MSDN image into CD images? Pin
Michael Dunn22-Nov-00 19:23
sitebuilderMichael Dunn22-Nov-00 19:23 
QuestionHow come derived class to have smaller size than parent? Pin
22-Nov-00 18:33
suss22-Nov-00 18:33 
AnswerRe: How come derived class to have smaller size than parent? Pin
Christian Graus22-Nov-00 22:56
protectorChristian Graus22-Nov-00 22:56 
QuestionHow to findout the IRQs for Devices Pin
22-Nov-00 11:31
suss22-Nov-00 11:31 
GeneralDestroys device independent bitmaps Pin
22-Nov-00 7:52
suss22-Nov-00 7:52 
GeneralRe: Destroys device independent bitmaps Pin
Christian Graus22-Nov-00 13:14
protectorChristian Graus22-Nov-00 13:14 
GeneralRe: Destroys device independent bitmaps Pin
22-Nov-00 19:59
suss22-Nov-00 19:59 
My save dib code is this : first, I create a bitmapfileheader then i write data to the bitmapfileheader .
Here is the actual code // if we have no data , we cannot save
if (m_pDib==NULL)
return(false);
CFile cf;
// attempt to create the file , CFile::modeCreate Directs the constructor to create
//a new file. If the file exists already, it is truncated to 0 length.
//CFile::modeWrite Opens the file for writing only, &= AND assignment
if(!cf.Open(pszFilename,Cfile::modeCreate &= CFile::modeWrite))
return(false);
//write the data
try{
//first create a bitmapfileheader
//with the correct data
BITMAPFILEHEADER BFH;
memset( &BFH,0,sizeof( BITMAPFILEHEADER ));
BFH.bfType ='MB';
BFH.bfSize = sizeof(BITMAPFILEHEADER) + m_dwDibSize;
BFH.bfOffBits = sizeof(BITMAPFILEHEADER) + sizeof(BITMAPINFOHEADER) + m_nPaletteEntries * sizeof(RGBQUAD);

//write the bitmapfileheader and dib data
cf.Write( &BFH , sizeof( BITMAPFILEHEADER ));
cf.Write( m-pDib, m_dwDibSize ));
Then what code should i put to destroy the dib ?

GeneralRe: Destroys device independent bitmaps Pin
Christian Graus22-Nov-00 23:07
protectorChristian Graus22-Nov-00 23:07 
GeneralVisual C++ on WIN2000 don't work! Pin
22-Nov-00 4:52
suss22-Nov-00 4:52 
GeneralRe: Visual C++ on WIN2000 don't work! Pin
22-Nov-00 5:31
suss22-Nov-00 5:31 
GeneralRe: Visual C++ on WIN2000 don't work! Pin
23-Nov-00 0:11
suss23-Nov-00 0:11 
GeneralRe: Visual C++ on WIN2000 don't work! Pin
Christian Graus22-Nov-00 13:12
protectorChristian Graus22-Nov-00 13:12 
GeneralCOleObjectFactory Pin
RAZ22-Nov-00 0:22
RAZ22-Nov-00 0:22 
GeneralUsing FILE* as paramter to DLL-function fails Pin
Chris Vischer21-Nov-00 23:48
Chris Vischer21-Nov-00 23:48 
GeneralRe: Using FILE* as paramter to DLL-function fails Pin
VitSoft22-Nov-00 0:07
VitSoft22-Nov-00 0:07 
GeneralRe: Using FILE* as paramter to DLL-function fails Pin
22-Nov-00 0:45
suss22-Nov-00 0:45 
GeneralRe: Using FILE* as paramter to DLL-function fails Pin
VitSoft22-Nov-00 1:25
VitSoft22-Nov-00 1:25 
GeneralRe: Using FILE* as paramter to DLL-function fails Pin
22-Nov-00 1:27
suss22-Nov-00 1:27 
GeneralNetMessageBufferSend Pin
21-Nov-00 22:58
suss21-Nov-00 22:58 
GeneralWindows 3.0 file format Pin
21-Nov-00 18:04
suss21-Nov-00 18:04 
GeneralCustomize .h/.cpp file Pin
21-Nov-00 14:57
suss21-Nov-00 14:57 
GeneralRe: Customize .h/.cpp file Pin
Ancient Dragon21-Nov-00 17:20
Ancient Dragon21-Nov-00 17:20 
QuestionIn Unix C++, does there exist a command like 'print current memory'? Pin
21-Nov-00 6:01
suss21-Nov-00 6:01 
GeneralHEEELP !!! error LNK2001: unresolved external symbol Pin
21-Nov-00 5:23
suss21-Nov-00 5:23 

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.