Click here to Skip to main content
15,913,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaltranslate winsock errors Pin
Dudi Avramov2-Apr-03 20:40
Dudi Avramov2-Apr-03 20:40 
GeneralQuestion about WS_SYSMENU Pin
Simon.W2-Apr-03 20:29
Simon.W2-Apr-03 20:29 
GeneralHelp about appending the latest data to another file.Thanks! Pin
dxhdxh2-Apr-03 20:03
dxhdxh2-Apr-03 20:03 
GeneralRe: Help about appending the latest data to another file.Thanks! Pin
Rage2-Apr-03 22:01
professionalRage2-Apr-03 22:01 
QuestionHow to use UNICODE string in VC6? Pin
_skidrow_vn_2-Apr-03 19:59
_skidrow_vn_2-Apr-03 19:59 
GeneralC++ related question Pin
John-theKing2-Apr-03 19:45
John-theKing2-Apr-03 19:45 
GeneralRe: C++ related question Pin
Taka Muraoka2-Apr-03 19:59
Taka Muraoka2-Apr-03 19:59 
GeneralRe: C++ related question Pin
Alvaro Mendez3-Apr-03 5:40
Alvaro Mendez3-Apr-03 5:40 
Technically it's not possible, but you can certainly work around it. The easiest way is to get rid of your default constructor and give your other constructor a default value for its parameter:

A(int val = 17) { ... }

You can also go with more complex solutions, such as global or static member variables which you initialize before creating the array, and then perhaps increment inside the constructor as each element is created.

No matter what you do, all elements of the array will call the same constructor. There's no way out of it.

Regards,
Alvaro


When birds fly in the right formation, they need only exert half the effort. Even in nature, teamwork results in collective laziness. -- despair.com
QuestionSystem.XML – alike class library for Visual C++ 6.0 ? Pin
Serge Krynine2-Apr-03 19:43
Serge Krynine2-Apr-03 19:43 
AnswerRe: System.XML – alike class library for Visual C++ 6.0 ? Pin
Pavel Klocek2-Apr-03 20:18
Pavel Klocek2-Apr-03 20:18 
AnswerRe: System.XML – alike class library for Visual C++ 6.0 ? Pin
Ravi Bhavnani3-Apr-03 4:23
professionalRavi Bhavnani3-Apr-03 4:23 
Generalsplitter window Pin
getsammy2-Apr-03 17:16
getsammy2-Apr-03 17:16 
GeneralRegistry manipulation Pin
J.B.2-Apr-03 15:32
J.B.2-Apr-03 15:32 
GeneralRe: Registry manipulation Pin
RaajaOfSelf2-Apr-03 16:27
RaajaOfSelf2-Apr-03 16:27 
GeneralRe: Registry manipulation Pin
De Nardis Andrea2-Apr-03 20:52
De Nardis Andrea2-Apr-03 20:52 
QuestionI want to Hook Mouse but failed? Pin
white jungle2-Apr-03 15:30
white jungle2-Apr-03 15:30 
AnswerRe: I want to Hook Mouse but failed? Pin
Simon.W2-Apr-03 18:47
Simon.W2-Apr-03 18:47 
GeneralRe: I want to Hook Mouse but failed? Pin
white jungle2-Apr-03 19:25
white jungle2-Apr-03 19:25 
GeneralRe: I want to Hook Mouse but failed? Pin
Simon.W2-Apr-03 20:37
Simon.W2-Apr-03 20:37 
GeneralDirectory changing.. and command lines.. Pin
(Steven Hicks)n+12-Apr-03 12:45
(Steven Hicks)n+12-Apr-03 12:45 
Generalsendmessage and CDialog pointer Pin
nss2-Apr-03 12:19
nss2-Apr-03 12:19 
GeneralRe: sendmessage and CDialog pointer Pin
valikac2-Apr-03 12:43
valikac2-Apr-03 12:43 
GeneralRe: sendmessage and CDialog pointer Pin
nss2-Apr-03 12:50
nss2-Apr-03 12:50 
GeneralRe: sendmessage and CDialog pointer Pin
Dave Bryant2-Apr-03 13:01
Dave Bryant2-Apr-03 13:01 
GeneralRe: sendmessage and CDialog pointer Pin
nss2-Apr-03 13:56
nss2-Apr-03 13:56 

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.