Click here to Skip to main content
15,943,406 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWinsock Layered Service provider on Win98??? Pin
Kuniva24-Nov-03 11:48
Kuniva24-Nov-03 11:48 
Generaldragable widgets Pin
john john mackey24-Nov-03 11:23
john john mackey24-Nov-03 11:23 
GeneralRe: dragable widgets Pin
john john mackey24-Nov-03 11:25
john john mackey24-Nov-03 11:25 
Generalhideing min,max and close button in mdi Pin
rsimcic24-Nov-03 11:11
rsimcic24-Nov-03 11:11 
GeneralRe: hideing min,max and close button in mdi Pin
BaldwinMartin24-Nov-03 14:55
BaldwinMartin24-Nov-03 14:55 
GeneralOverLoading Constructor Pin
NewYork24-Nov-03 10:49
NewYork24-Nov-03 10:49 
GeneralRe: OverLoading Constructor Pin
Michael P Butler24-Nov-03 11:26
Michael P Butler24-Nov-03 11:26 
GeneralRe: OverLoading Constructor Pin
John R. Shaw24-Nov-03 17:10
John R. Shaw24-Nov-03 17:10 
You could just add an interger argument to the origanal constructor thus:
CUpdateRcrd::CUpdateRcrd(CWnd* pParent /*=NULL*/, int n /*=0*/)

You could make a copy (cut & paste) of the origanal and use it as a bases for your new constructor.

You could pull out the intialization code from the origanal constructor and store it in a sperate member function that is call by all additional constructors that you create.

No matter how you go about it, what ever the origanaly constructor is doing you must do the same thing in any constructor you create. If you are not doing this then some thing is not being initialize to a known state durring construction and a what do you know it crashes.


INTP
GeneralUsing Visual C++ 6 for Palm OS Dev. Pin
Ernesto D.24-Nov-03 9:58
Ernesto D.24-Nov-03 9:58 
GeneralRe: Using Visual C++ 6 for Palm OS Dev. Pin
john john mackey24-Nov-03 11:06
john john mackey24-Nov-03 11:06 
GeneralRe: Using Visual C++ 6 for Palm OS Dev. Pin
Michael P Butler24-Nov-03 11:29
Michael P Butler24-Nov-03 11:29 
GeneralRe: Using Visual C++ 6 for Palm OS Dev. Pin
Christian Graus24-Nov-03 13:03
protectorChristian Graus24-Nov-03 13:03 
Generalpasting from program to notepad Pin
elena1234524-Nov-03 9:49
elena1234524-Nov-03 9:49 
GeneralRe: pasting from program to notepad Pin
BaldwinMartin24-Nov-03 17:18
BaldwinMartin24-Nov-03 17:18 
GeneralRe: pasting from program to notepad Pin
John R. Shaw24-Nov-03 17:20
John R. Shaw24-Nov-03 17:20 
QuestionDialog box continuous update? Pin
bradleyand24-Nov-03 9:41
bradleyand24-Nov-03 9:41 
AnswerRe: Dialog box continuous update? Pin
Andrey Del Pozo24-Nov-03 10:11
Andrey Del Pozo24-Nov-03 10:11 
GeneralRe: Dialog box continuous update? Pin
bradleyand24-Nov-03 20:41
bradleyand24-Nov-03 20:41 
GeneralWin32 Dialog Box and Date/Time Picker Control Pin
Billy Whizz24-Nov-03 9:40
Billy Whizz24-Nov-03 9:40 
GeneralRe: Win32 Dialog Box and Date/Time Picker Control Pin
BaldwinMartin24-Nov-03 17:21
BaldwinMartin24-Nov-03 17:21 
GeneralRe: Win32 Dialog Box and Date/Time Picker Control Pin
Billy Whizz24-Nov-03 22:56
Billy Whizz24-Nov-03 22:56 
GeneralRe: Win32 Dialog Box and Date/Time Picker Control Pin
Steve S25-Nov-03 2:50
Steve S25-Nov-03 2:50 
GeneralClistbox parsing,help Pin
thes3cr3t124-Nov-03 9:32
thes3cr3t124-Nov-03 9:32 
GeneralRe: Clistbox parsing,help Pin
BaldwinMartin24-Nov-03 17:27
BaldwinMartin24-Nov-03 17:27 
Questiondetermineing a variable type within the program code? Pin
Anonymous24-Nov-03 9:24
Anonymous24-Nov-03 9:24 

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.