Click here to Skip to main content
15,920,801 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: memory leak Pin
pranavamhari4-Jul-03 19:05
pranavamhari4-Jul-03 19:05 
GeneralRe: memory leak Pin
John M. Drescher5-Jul-03 3:29
John M. Drescher5-Jul-03 3:29 
GeneralRe: memory leak Pin
John M. Drescher5-Jul-03 3:30
John M. Drescher5-Jul-03 3:30 
GeneralRe: memory leak Pin
pranavamhari5-Jul-03 20:58
pranavamhari5-Jul-03 20:58 
GeneralCOM passing Pin
Anthony98874-Jul-03 3:27
Anthony98874-Jul-03 3:27 
GeneralRe: COM passing Pin
valikac4-Jul-03 5:05
valikac4-Jul-03 5:05 
GeneralRe: COM passing Pin
Anthony98874-Jul-03 7:42
Anthony98874-Jul-03 7:42 
QuestionWhats true? MSDN or source code? Pin
Dominik Reichl4-Jul-03 2:12
Dominik Reichl4-Jul-03 2:12 
Hello,

I am using CBitmaps for my bitmap objects. MSDN says that a bitmap loaded with the LoadBitmap member function will be freed automatically when the class is destructed:
You can use the CGdiObject::DeleteObject function to delete bitmap loaded by the
LoadBitmap function, or the CBitmap destructor will delete the object for you.
Now I had a look into the MFC source files and found the following lines in the file Afxwin1.inl
_AFXWIN_INLINE CBitmap::~CBitmap()
	{ }
So it seems the destructor does simply nothing???

Will my bitmap be freed on destruction of the CBitmap class or not??

Confused | :confused:
-Dominik



_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? Wink | ;)

AnswerRe: Whats true? MSDN or source code? Pin
Ryan Binns4-Jul-03 2:16
Ryan Binns4-Jul-03 2:16 
GeneralRe: Whats true? MSDN or source code? Pin
Dominik Reichl4-Jul-03 2:23
Dominik Reichl4-Jul-03 2:23 
GeneralRe: Whats true? MSDN or source code? Pin
Dominik Reichl4-Jul-03 2:25
Dominik Reichl4-Jul-03 2:25 
GeneralRe: Whats true? MSDN or source code? Pin
Ryan Binns4-Jul-03 2:29
Ryan Binns4-Jul-03 2:29 
QuestionHow to convert .exe MFC project into .ocx MFC project? Pin
Mohammed Jawed Perwez4-Jul-03 2:09
Mohammed Jawed Perwez4-Jul-03 2:09 
QuestionHas anyone found a workaround for VC++ 6.0 when using Access 2K? Pin
WREY4-Jul-03 0:25
WREY4-Jul-03 0:25 
AnswerRe: Has anyone found a workaround for VC++ 6.0 when using Access 2K? Pin
Michael P Butler4-Jul-03 0:32
Michael P Butler4-Jul-03 0:32 
GeneralRe: Has anyone found a workaround for VC++ 6.0 when using Access 2K? Pin
WREY4-Jul-03 1:09
WREY4-Jul-03 1:09 
GeneralRe: Has anyone found a workaround for VC++ 6.0 when using Access 2K? Pin
John M. Drescher4-Jul-03 3:09
John M. Drescher4-Jul-03 3:09 
AnswerRe: Has anyone found a workaround for VC++ 6.0 when using Access 2K? Pin
Scozturk4-Jul-03 1:20
professionalScozturk4-Jul-03 1:20 
GeneralRe: Has anyone found a workaround for VC++ 6.0 when using Access 2K? Pin
WREY4-Jul-03 7:29
WREY4-Jul-03 7:29 
AnswerRe: Has anyone found a workaround for VC++ 6.0 when using Access 2K? Pin
Manfred Staiger7-Jul-03 4:26
Manfred Staiger7-Jul-03 4:26 
GeneralRe: Has anyone found a workaround for VC++ 6.0 when using Access 2K? Pin
WREY7-Jul-03 7:18
WREY7-Jul-03 7:18 
GeneralDisabling keyboard buttons Pin
Scozturk3-Jul-03 23:50
professionalScozturk3-Jul-03 23:50 
GeneralRe: Disabling keyboard buttons Pin
Rage4-Jul-03 0:45
professionalRage4-Jul-03 0:45 
GeneralRe: Disabling keyboard buttons Pin
Scozturk4-Jul-03 1:14
professionalScozturk4-Jul-03 1:14 
GeneralRe: Disabling keyboard buttons Pin
Ryan Binns4-Jul-03 1:30
Ryan Binns4-Jul-03 1:30 

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.