Click here to Skip to main content
15,917,177 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDialog prompts in German - would like to restore to English Pin
Peter Maton25-Aug-03 11:15
Peter Maton25-Aug-03 11:15 
GeneralRe: Dialog prompts in German - would like to restore to English Pin
Peter Maton26-Aug-03 13:08
Peter Maton26-Aug-03 13:08 
Generalcolor table of bitmap Pin
includeh1025-Aug-03 10:34
includeh1025-Aug-03 10:34 
GeneralRe: color table of bitmap Pin
Joaquín M López Muñoz25-Aug-03 10:42
Joaquín M López Muñoz25-Aug-03 10:42 
GeneralSimple question. Pin
Jon Newman25-Aug-03 10:03
Jon Newman25-Aug-03 10:03 
GeneralRe: Simple question. Pin
Joaquín M López Muñoz25-Aug-03 10:39
Joaquín M López Muñoz25-Aug-03 10:39 
GeneralRe: Simple question. Pin
Jon Newman25-Aug-03 10:42
Jon Newman25-Aug-03 10:42 
GeneralTemplate for experts!! help Pin
berserker_r25-Aug-03 9:40
berserker_r25-Aug-03 9:40 
I posted this problem before, but no one can help me...plz it's urgent!

Hi, in my MFC app I have a template class like this:

<br />
template < class BASE ><br />
class CBWnd : public BASE {<br />
public:<br />
CBWnd(){};<br />
CBWnd(LPCTSTR s, CWnd *p):BASE(s, p){};<br />
CBWnd(UINT n, CWnd *p):BASE(n, p){};<br />
CBWnd(LPCTSTR s):BASE(s){};<br />
CBWnd(UINT n):BASE(n){}; <br />
//...<br />
};<br />



When I derive a class from an MFC one a make this:

<br />
class CMyButton : public CBWnd < CButton > {};<br />
<br />
class CMyDialog : public CBWnd < CDialog > <br />
{<br />
CMyDialog(LPCTSTR s, CWnd *p):CBWnd< CDialog >(s, p){};<br />
};<br />


In the contructors of CMyButton and CMyDialog I need to pass the parameters (for example the template ID and the parent window of derived a dialog) to the base class (CDialog, CButton and so on...that's why all constructors).

This code works fine on Visual Studio 6 but doesn't compile on Visual Studio 2003 because this compiler check all the CBWnd constructors (VS6 check only the used ones...)and if there isn't an implementation in the other classes (CMyButton, CMyDialog ecc...)
of the called one it generates an error...

Plz help me!
GeneralRe: Template for experts!! help Pin
Anonymous25-Aug-03 10:19
Anonymous25-Aug-03 10:19 
GeneralRe: Template for experts!! help Pin
Joaquín M López Muñoz25-Aug-03 10:27
Joaquín M López Muñoz25-Aug-03 10:27 
Questionhow to show data in internet explorer Pin
Binayak25-Aug-03 8:20
Binayak25-Aug-03 8:20 
AnswerRe: how to show data in internet explorer Pin
PremL26-Aug-03 5:39
PremL26-Aug-03 5:39 
Generalusing CArchive with CBlockingSocket class Pin
Mike Ellertson25-Aug-03 7:56
sussMike Ellertson25-Aug-03 7:56 
GeneralRe: using CArchive with CBlockingSocket class Pin
Mikey_E25-Aug-03 8:30
professionalMikey_E25-Aug-03 8:30 
GeneralProblem with MFC create control for component Pin
tongc25-Aug-03 7:13
tongc25-Aug-03 7:13 
GeneralSHGetFileInfo Pin
Member 50856725-Aug-03 7:02
Member 50856725-Aug-03 7:02 
GeneralRe: SHGetFileInfo Pin
David Crow25-Aug-03 8:06
David Crow25-Aug-03 8:06 
GeneralRe: SHGetFileInfo Pin
Member 50856726-Aug-03 2:36
Member 50856726-Aug-03 2:36 
GeneralCommit to Disk Pin
jmf31415925-Aug-03 6:40
jmf31415925-Aug-03 6:40 
GeneralRe: Commit to Disk Pin
Neville Franks25-Aug-03 10:43
Neville Franks25-Aug-03 10:43 
GeneralRe: Commit to Disk Pin
jmf31415925-Aug-03 11:43
jmf31415925-Aug-03 11:43 
GeneralRe: Commit to Disk Pin
Neville Franks25-Aug-03 12:03
Neville Franks25-Aug-03 12:03 
GeneralRe: Commit to Disk Pin
parths25-Aug-03 15:25
parths25-Aug-03 15:25 
GeneralGibberish code Pin
dog_spawn25-Aug-03 15:06
dog_spawn25-Aug-03 15:06 
QuestionApplication-Close/Minimize effect, where? Pin
Exim25-Aug-03 6:39
Exim25-Aug-03 6:39 

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.