Click here to Skip to main content
15,886,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Memory Leak Problem Pin
CPallini5-Sep-11 2:03
mveCPallini5-Sep-11 2:03 
AnswerRe: Memory Leak Problem Pin
Arun Parthasarathy7-Sep-11 2:27
Arun Parthasarathy7-Sep-11 2:27 
AnswerRe: Memory Leak Problem Pin
David Crow7-Sep-11 6:32
David Crow7-Sep-11 6:32 
GeneralRe: Memory Leak Problem Pin
Arun Parthasarathy8-Sep-11 23:06
Arun Parthasarathy8-Sep-11 23:06 
Questionload dll Pin
Benjamin Bruno4-Sep-11 21:01
Benjamin Bruno4-Sep-11 21:01 
QuestionRe: load dll Pin
CPallini4-Sep-11 21:34
mveCPallini4-Sep-11 21:34 
AnswerRe: load dll Pin
Orjan Westin4-Sep-11 23:44
professionalOrjan Westin4-Sep-11 23:44 
AnswerRe: load dll Pin
Eugen Podsypalnikov5-Sep-11 3:24
Eugen Podsypalnikov5-Sep-11 3:24 
Here is an exception-free way Smile | :) :
C++
class CSafeDllHolder {
  HMODULE m_hModule;

public:
  CSafeDllHolder(LPCTSTR lpszLib) : m_hModule(::LoadLibrary(lpszLib)) {}
  ~CSafeDllHolder() { if (m_hModule) ::FreeLibrary(m_hModule); }

  HMODULE GetHandle() const { return m_hModule; }
  //..
};

They sought it with thimbles, they sought it with care;
They pursued it with forks and hope;
They threatened its life with a railway-share;
They charmed it with smiles and soap. Smile | :)

Questionmfc100u.lib Pin
columbos149274-Sep-11 2:10
columbos149274-Sep-11 2:10 
AnswerRe: mfc100u.lib Pin
enhzflep4-Sep-11 4:02
enhzflep4-Sep-11 4:02 
QuestionAdd new sheet in Excel using mfc... Pin
spalanivel3-Sep-11 21:42
spalanivel3-Sep-11 21:42 
AnswerRe: Add new sheet in Excel using mfc... Pin
_Flaviu8-Sep-11 5:37
_Flaviu8-Sep-11 5:37 
QuestionShowNotifyBaloon problem [modified] Pin
_Flaviu3-Sep-11 3:41
_Flaviu3-Sep-11 3:41 
AnswerRe: ShowNotifyBaloon problem Pin
Richard Andrew x643-Sep-11 8:48
professionalRichard Andrew x643-Sep-11 8:48 
GeneralRe: ShowNotifyBaloon problem Pin
_Flaviu3-Sep-11 8:55
_Flaviu3-Sep-11 8:55 
GeneralRe: ShowNotifyBaloon problem Pin
Chuck O'Toole3-Sep-11 9:20
Chuck O'Toole3-Sep-11 9:20 
GeneralRe: ShowNotifyBaloon problem Pin
Richard Andrew x643-Sep-11 9:27
professionalRichard Andrew x643-Sep-11 9:27 
AnswerRe: ShowNotifyBaloon problem Pin
MicroVirus4-Sep-11 3:12
MicroVirus4-Sep-11 3:12 
GeneralRe: ShowNotifyBaloon problem Pin
_Flaviu5-Sep-11 0:03
_Flaviu5-Sep-11 0:03 
GeneralRe: ShowNotifyBaloon problem Pin
MicroVirus5-Sep-11 11:06
MicroVirus5-Sep-11 11:06 
GeneralRe: ShowNotifyBaloon problem Pin
Chuck O'Toole5-Sep-11 15:07
Chuck O'Toole5-Sep-11 15:07 
GeneralRe: ShowNotifyBaloon problem Pin
_Flaviu5-Sep-11 19:25
_Flaviu5-Sep-11 19:25 
GeneralRe: ShowNotifyBaloon problem Pin
MicroVirus6-Sep-11 2:39
MicroVirus6-Sep-11 2:39 
GeneralRe: ShowNotifyBaloon problem Pin
MicroVirus6-Sep-11 2:36
MicroVirus6-Sep-11 2:36 
GeneralRe: ShowNotifyBaloon problem Pin
Chuck O'Toole6-Sep-11 4:03
Chuck O'Toole6-Sep-11 4:03 

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.