Click here to Skip to main content
16,005,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Hot to get ouput of console application executed by my program? Pin
Jeremy Falcon18-Apr-02 8:51
professionalJeremy Falcon18-Apr-02 8:51 
GeneralRe: Hot to get ouput of console application executed by my program? Pin
18-Apr-02 13:44
suss18-Apr-02 13:44 
AnswerRe: Hot to get ouput of console application executed by my program? Pin
Aoife19-Apr-02 3:44
Aoife19-Apr-02 3:44 
GeneralSDI Project Pin
Peter Liddle18-Apr-02 7:10
Peter Liddle18-Apr-02 7:10 
GeneralRe: SDI Project Pin
Matt Gullett18-Apr-02 10:07
Matt Gullett18-Apr-02 10:07 
GeneralDLLs to redistribute with VC++ 7.0 applications Pin
W2k18-Apr-02 6:31
W2k18-Apr-02 6:31 
GeneralRe: DLLs to redistribute with VC++ 7.0 applications Pin
W2k19-Apr-02 2:57
W2k19-Apr-02 2:57 
QuestionGenertic Auto-ptr ? Pin
Todd Smith18-Apr-02 5:35
Todd Smith18-Apr-02 5:35 
Before I write my own....I need something to auto-magically cleanup resources such as HMODULE, new'd data, GDI objects, etc. Is there a template lib that can handle all these different data types?

For instance, for an HMODULE I need it to call FreeLibrary, for regular new'd memory I need to call delete pData or delete [] pArray.

I've looked through STL, ATL and WTL but they don't seem to have anything that does the trick.

I want to be able to write something like

AutoThingy<hmodule> hLib = LoadLibrary("some.dll");

or

AutoSomething<char*> pData = new char[123];

and not have to worry about the call to FreeLibrary or delete [] before I exit the function.

Todd Smith
AnswerRe: Genertic Auto-ptr ? Pin
Maxime Labelle18-Apr-02 5:47
Maxime Labelle18-Apr-02 5:47 
GeneralRe: Genertic Auto-ptr ? Pin
Paul M Watt18-Apr-02 17:50
mentorPaul M Watt18-Apr-02 17:50 
GeneralRe: Genertic Auto-ptr ? Pin
Maxime Labelle18-Apr-02 21:19
Maxime Labelle18-Apr-02 21:19 
GeneralRe: Genertic Auto-ptr ? Pin
Paul M Watt18-Apr-02 21:44
mentorPaul M Watt18-Apr-02 21:44 
GeneralCEdit derived class Pin
User 988518-Apr-02 4:28
User 988518-Apr-02 4:28 
GeneralRe: CEdit derived class Pin
Ravi Bhavnani18-Apr-02 4:44
professionalRavi Bhavnani18-Apr-02 4:44 
GeneralRe: CEdit derived class Pin
User 988518-Apr-02 4:54
User 988518-Apr-02 4:54 
GeneralRe: CEdit derived class Pin
Jon Hulatt18-Apr-02 23:41
Jon Hulatt18-Apr-02 23:41 
GeneralRe: CEdit derived class Pin
User 988519-Apr-02 12:28
User 988519-Apr-02 12:28 
GeneralRe: CEdit derived class Pin
Bill Wilson18-Apr-02 13:28
Bill Wilson18-Apr-02 13:28 
GeneralRe: CEdit derived class Pin
User 988519-Apr-02 12:25
User 988519-Apr-02 12:25 
GeneralRe: CEdit derived class Pin
Bill Wilson19-Apr-02 12:42
Bill Wilson19-Apr-02 12:42 
GeneralRe: CEdit derived class Pin
PJ Arends19-Apr-02 12:58
professionalPJ Arends19-Apr-02 12:58 
GeneralRe: CEdit derived class Pin
User 988520-Apr-02 4:49
User 988520-Apr-02 4:49 
GeneralRe: CEdit derived class Pin
Matt Gullett19-Apr-02 17:28
Matt Gullett19-Apr-02 17:28 
GeneralRe: CEdit derived class Pin
User 988520-Apr-02 4:46
User 988520-Apr-02 4:46 
GeneralWin32 control question Pin
18-Apr-02 4:11
suss18-Apr-02 4:11 

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.