Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Add toolbar icon at runtime Pin
Andreas Saurwein29-Aug-02 2:02
Andreas Saurwein29-Aug-02 2:02 
GeneralRe: Add toolbar icon at runtime Pin
Pavel Klocek29-Aug-02 2:06
Pavel Klocek29-Aug-02 2:06 
GeneralJust a very small problem Pin
Hostalet Wandosell30-Aug-02 5:20
Hostalet Wandosell30-Aug-02 5:20 
GeneralCapturing events in a custom IE toolbar Pin
Scubart28-Aug-02 23:13
Scubart28-Aug-02 23:13 
GeneralFonts installation Pin
Shamoon28-Aug-02 23:07
Shamoon28-Aug-02 23:07 
GeneralRe: Fonts installation Pin
Steve Thresher29-Aug-02 1:32
Steve Thresher29-Aug-02 1:32 
QuestionMember templates? Pin
pankajdaga28-Aug-02 22:47
pankajdaga28-Aug-02 22:47 
AnswerRe: Member templates? Pin
Tomasz Sowinski29-Aug-02 1:10
Tomasz Sowinski29-Aug-02 1:10 
pankajdaga wrote:
However, I have no idea what a member template is.

Well, the name is self exlaining. Member template == template method.

template <class T>
class Ptr
{
public:
	Ptr(T* pp = NULL) { p = pp; }



	template <class T2>
	void Assign(T2 *pp)
	{
		p = pp;
	}

private:
	T *p;
};

Ptr<CWnd> pw;
CDialog d;
pw.Assign(&d); // compiles OK
CString s;
pw.Assign(&s); // compiler error - can't convert from CString * to CWnd


Tomasz Sowinski -- http://www.shooltz.com

Free your mind and your ass will follow.

Generalaccept Pin
Hans Ruck28-Aug-02 22:29
Hans Ruck28-Aug-02 22:29 
GeneralSplitterWindow in CMDIFrameWnd Pin
Poul Haahr Klemmensen28-Aug-02 21:46
Poul Haahr Klemmensen28-Aug-02 21:46 
GeneralRe: SplitterWindow in CMDIFrameWnd Pin
Hans Ruck28-Aug-02 23:45
Hans Ruck28-Aug-02 23:45 
QuestionHow can I use the Borland C++ to compile my code...? Pin
DotNet28-Aug-02 21:38
DotNet28-Aug-02 21:38 
QuestionORing bits...? Pin
alex.barylski28-Aug-02 21:37
alex.barylski28-Aug-02 21:37 
AnswerRe: ORing bits...? Pin
Joaquín M López Muñoz28-Aug-02 21:39
Joaquín M López Muñoz28-Aug-02 21:39 
AnswerRe: ORing bits...? Pin
Tomasz Sowinski29-Aug-02 0:34
Tomasz Sowinski29-Aug-02 0:34 
GeneralCreateFileMapping Pin
Mazdak28-Aug-02 21:21
Mazdak28-Aug-02 21:21 
QuestionIs there a fast method for doing this? Pin
chen28-Aug-02 20:39
chen28-Aug-02 20:39 
AnswerRe: Is there a fast method for doing this? Pin
pépé29-Aug-02 2:07
pépé29-Aug-02 2:07 
AnswerRe: Is there a fast method for doing this? Pin
chen29-Aug-02 2:14
chen29-Aug-02 2:14 
GeneralRe: Is there a fast method for doing this? Pin
pépé29-Aug-02 4:32
pépé29-Aug-02 4:32 
GeneralPlaying a wave or mp3 file in my program Pin
Mavrock28-Aug-02 19:12
Mavrock28-Aug-02 19:12 
GeneralRe: Playing a wave or mp3 file in my program Pin
Mazdak28-Aug-02 19:16
Mazdak28-Aug-02 19:16 
GeneralRe: Playing a wave or mp3 file in my program Pin
anju29-Aug-02 0:14
anju29-Aug-02 0:14 
GeneralRe: Playing a wave or mp3 file in my program Pin
mynab3-Sep-02 0:23
mynab3-Sep-02 0:23 
GeneralWindows Image Acquisition - Please help! Pin
Hiusing28-Aug-02 19:08
Hiusing28-Aug-02 19:08 

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.