Click here to Skip to main content
15,922,533 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: fault on delete[ ] ? (Solved) Pin
Brian C Hart25-Aug-03 8:39
professionalBrian C Hart25-Aug-03 8:39 
GeneralRe: fault on delete[ ] ? (Solved) Pin
armentage25-Aug-03 8:48
armentage25-Aug-03 8:48 
GeneralRe: fault on delete[ ] ? Pin
JT Anderson25-Aug-03 12:29
JT Anderson25-Aug-03 12:29 
AnswerRe: fault on delete[ ] ? Pin
Neville Franks23-Aug-03 10:09
Neville Franks23-Aug-03 10:09 
GeneralRe: fault on delete[ ] ? (Solved) Pin
Brian C Hart25-Aug-03 8:41
professionalBrian C Hart25-Aug-03 8:41 
AnswerRe: fault on delete[ ] ? Pin
igor196023-Aug-03 16:32
igor196023-Aug-03 16:32 
GeneralRe: fault on delete[ ] ? (Solved) Pin
Brian C Hart25-Aug-03 8:42
professionalBrian C Hart25-Aug-03 8:42 
GeneralMFC problem with templates and VS2003 : plz help!!! Pin
berserker_r23-Aug-03 8:39
berserker_r23-Aug-03 8:39 
Hi, in my MFC app I have a template class like this:

<br />
template <typename 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! Cry | :((
GeneralRe: MFC problem with templates and VS2003 : plz help!!! Pin
igor196023-Aug-03 16:47
igor196023-Aug-03 16:47 
GeneralRe: MFC problem with templates and VS2003 : plz help!!! Pin
berserker_r24-Aug-03 0:43
berserker_r24-Aug-03 0:43 
Generalscript blocking Pin
Chen Jiadong23-Aug-03 4:39
Chen Jiadong23-Aug-03 4:39 
QuestionHow can i get the 9th bit in Serial communication? Pin
Cyclist23-Aug-03 4:17
Cyclist23-Aug-03 4:17 
AnswerRe: How can i get the 9th bit in Serial communication? Pin
Ernest Laurentin23-Aug-03 4:39
Ernest Laurentin23-Aug-03 4:39 
GeneralRe: How can i get the 9th bit in Serial communication? Pin
Cyclist23-Aug-03 17:25
Cyclist23-Aug-03 17:25 
Questionhow to code CDialogBar into SDI? Pin
coda_x23-Aug-03 3:09
coda_x23-Aug-03 3:09 
GeneralNeed Compiler crack Pin
Babayan Hovhannes23-Aug-03 2:00
Babayan Hovhannes23-Aug-03 2:00 
GeneralRe: Need Compiler crack Pin
Trollslayer23-Aug-03 3:05
mentorTrollslayer23-Aug-03 3:05 
GeneralRe: Need Compiler crack Pin
Terry O'Nolley23-Aug-03 7:43
Terry O'Nolley23-Aug-03 7:43 
GeneralRe: Need Compiler crack Pin
leppie23-Aug-03 17:15
leppie23-Aug-03 17:15 
GeneralRe: Need Compiler crack Pin
Alexander M.,24-Aug-03 6:24
Alexander M.,24-Aug-03 6:24 
GeneralSOS!!!!! Pin
jimsleon23-Aug-03 1:22
jimsleon23-Aug-03 1:22 
GeneralRe: SOS!!!!! Pin
Neville Franks23-Aug-03 1:56
Neville Franks23-Aug-03 1:56 
QuestionFree C profiler? Pin
leppie23-Aug-03 1:13
leppie23-Aug-03 1:13 
AnswerRe: Free C profiler? Pin
igor196023-Aug-03 16:54
igor196023-Aug-03 16:54 
GeneralRe: Free C profiler? Pin
leppie23-Aug-03 17:10
leppie23-Aug-03 17:10 

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.